Number | Base of difference | PowerShell | Command Prompt |
1 | Year | Well when we say about the PowerShell it was introduced in the year 2006. | Well when we say about the Command Prompt it was introduced in the year 1981. |
2 | Linux | Well when we say about the PowerShell, it supports Linux systems. | Well when we say about the Command Prompt, it will not support Linux systems. |
3 | Type of Program | Well when we say about the powershell, it can be used to run the all types of programs. | And when we say about the Command Prompt, it can run only console type programs. |
4 | Cloud Products | Well when we say about the Cloud product from microsoft in powershell we can connect them. | Well when we say about the Command Prompt, this will not have ability to connect with MS online products. |
5 | WMI | When we will say about the Powershell, it can integrate directly with WMI(Windows Management Instrumentation). And there are several native WMI cmdlets that exist in PowerShell without having to install any additional modules. | Well when we say about the command prompt, to connect with WMI we need soem external plugin to do interactions with WMI. |
6 | Libraries | When we say about the PowerShell, it has access to programming libraries as we know it is built on .Net framework. | Well when we say about the command prompt, it has no access to libraries. |
7 | ISE | Well, PowerShell has an ISE(Integrated Scripting Environment). | Well when we say about the command prompt there is only a command line interface and no separate ISE. |
8 | Run | Well to open Powershell we need to run by typing PowerShell. | Well to start command prompt and by typing cmd we can run it. |
9 | Commands | Well in PowerShell we can operate with both Batch commands and PowerShell cmdlets. | Well on another and here we can work only with Bacth commands. |
10 | creation of aliases | Well PowerShell will provides the ability to create aliases for cmdlets or scripts. This can help the user to navigate between the functions easily. | Well when we say about the command prompt, this will not support the creation of aliases of commands. |
11 | Output | Well when we say about the Powershell output, we can use powershell cmdlet output to other cmdlets. | Well when we say about the output, we can not use output to another command or we can say Output from a command can not be passed on to other commands. |
12 | Output form | Well Powershell output is in the form of an object. | Command prompt output from a command is just text. |
13 | Multiple Command | Well when we say about the Powershell, we can execute sequence of cmdlets put together in a script. | Well in cmd, a command must be finished before the next command is run. |
14 | Help | Well, help command is available to get informationregarding any cmdlets. | No such help option is available for information regarding commands. |
15 | Change the directory location | Powershell cmdlet: Set-Location ” D:\testfolder” | CMD command:- cd /d D:\testfolder |
16 | List Files in directory | Powershell cmdlet: Get-Childitem | Cmd command: dir |
17 | Rename a file | Powershell cmdlet: Rename-Item “c:\file.txt” -NewName “new.txt” | Cmd command: rename c: \old.txt new.txt |
18 | Stop a process | Powershell cmdlet: Get-Help “Cmdlet name” | Cmd command: help [commandname] [/?] |
19 | Shutdown local system | Powershell cmdlet: Stop-Computer | Cmd command: Stop-Process -Name “ProcessName” |
20 | Restart the local system | Powershell cmdlet: Restart-Computer | Cmd command: shutdown /s |
21 | Get ip address
| Powershell cmdlet: Test-Connection -ComputerName (hostname)
| Cmd command: shutdown /r |