CodePudding user response:
1, in short, Powershell is a superset of CMD, in other words, CMD can do, can do Powershell, but Powershell can also do many extra CMD can't do,2 and CMD and powershell command line can do interactions, batch and powershell script function is also quite,
I don't know how do you think of CMD, but here is a powershell is based on. Net, as long as you know enough. Net, you can use her to do anything you want to do,
Windows PowerShell is designed for system administrators to design new Windows command line shell, Windows PowerShell includes an interactive prompt and scripting environment, can be used independently can also use a combination of both,
Unlike accept and return text most shells, Windows PowerShell is in the.net Framework is the common language runtime
(CLR) and the.net Framework is built on the basis of, it accepts and returns the.net Framework
Object, the fundamental change of the environment management and configuration Windows of new tools and methods,
Windows PowerShell introduced a pre-existing cmdlets (pronounced "command - let"), the concept of this is built into the shell
The single function of a simple command line tools, can use each pre-existing cmdlets respectively, but use a combination of these simple tools to perform complex tasks to play its role, Windows
Basic core pre-existing cmdlets PowerShell includes more than one hundred, you can write your own pre-existing cmdlets and share with other users,
Like many shell, Windows PowerShell provides you with access to files on a computer system, moreover, using the Windows PowerShell provider can also access other data storage, such as the registry and digital signature certificate store, like access to the file system easily,
In simple terms, Powershell is a superset of CMD, in other words, CMD can do, can do Powershell, but Powershell can also do many extra CMD can't do,
Mainly system management function, script language and online help more powerful, you really can only regard it as CMD to use, also can learn and use more deeply