Paradigm | Imperative, pipeline, object-oriented, functional and reflective |
---|---|
Designed by | Jeffrey Snover, Bruce Payette, James Truher (et al.) |
Developer | Microsoft |
First appeared | November 14, 2006 |
Stable release | |
Typing discipline | Strong, safe, implicit and dynamic |
Implementation language | C# |
Platform | PowerShell: .NET Windows PowerShell: .NET Framework |
OS |
|
License | MIT License[3] (but the Windows component remains proprietary) |
Filename extensions |
|
Website | microsoft |
Influenced by | |
Python, Ksh, Perl, C#, CL, DCL, SQL, Tcl, Tk,[4] Chef, Puppet |
PowerShell is a task automation and configuration management program from Microsoft, consisting of a command-line shell and the associated scripting language. Initially a Windows component only, known as Windows PowerShell, it was made open-source and cross-platform on August 18, 2016, with the introduction of PowerShell Core.[5] The former is built on the .NET Framework, the latter on .NET (previously .NET Core).
PowerShell is bundled with all currently supported Windows versions, and can also be installed on MacOS and Linux.[5] Since Windows 10 build 14971, PowerShell replaced Command Prompt (cmd.exe) and became the default command shell for File Explorer.[6][7]
In PowerShell, administrative tasks are generally performed via cmdlets (pronounced command-lets), which are specialized .NET classes implementing a particular operation. These work by accessing data in different data stores, like the file system or Windows Registry, which are made available to PowerShell via providers. Third-party developers can add cmdlets and providers to PowerShell.[8][9] Cmdlets may be used by scripts, which may in turn be packaged into modules. Cmdlets work in tandem with the .NET API.
PowerShell's support for .NET Remoting, WS-Management, CIM, and SSH enables administrators to perform administrative tasks on both local and remote Windows systems. PowerShell also provides a hosting API with which the PowerShell runtime can be embedded inside other applications. These applications can then use PowerShell functionality to implement certain operations, including those exposed via the graphical interface. This capability has been used by Microsoft Exchange Server 2007 to expose its management functionality as PowerShell cmdlets and providers and implement the graphical management tools as PowerShell hosts which invoke the necessary cmdlets.[8][10] Other Microsoft applications including Microsoft SQL Server 2008 also expose their management interface via PowerShell cmdlets.[11]
PowerShell includes its own extensive, console-based help (similar to man pages in Unix shells) accessible via the Get-Help
cmdlet. Updated local help contents can be retrieved from the Internet via the Update-Help
cmdlet. Alternatively, help from the web can be acquired on a case-by-case basis via the -online
switch to Get-Help
.
ars-opensource
was invoked but never defined (see the help page).how
was invoked but never defined (see the help page).