PowerShell
| PowerShell | |
|---|---|
Screenshot of a PowerShell 7.5.0 session in Windows Terminal | |
| 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 | |
| Preview release | 7.6.0.preview.4
/ 8 April 2025[3] |
| Typing discipline | Strong, safe, implicit and dynamic |
| Implementation language | C# |
| Platform | PowerShell: .NET Windows PowerShell: .NET Framework |
| OS |
|
| License | MIT License[4] (but the Windows component remains proprietary) |
| Filename extensions |
|
| Website | microsoft |
| Influenced by | |
| Python, Ksh, Perl, C#, CL, DCL, SQL, Tcl, Tk,[5] Chef, Puppet | |
PowerShell is a shell program developed by Microsoft for task automation and configuration management. As is typical for a shell, it provides a command-line interpreter for interactive use and a script interpreter for automation via a language defined for it. Originally only for Windows, known as Windows PowerShell, it was made open-source and cross-platform on August 18, 2016, with the introduction of PowerShell Core.[6] The former is built on the .NET Framework; the latter on .NET (previously .NET Core).
PowerShell is bundled with current versions of Windows and can be installed on macOS and Linux.[6] Since Windows 10 build 14971, PowerShell replaced Command Prompt as the default command shell exposed by File Explorer.[7][8]
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.[9][10] 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.[9][11] Other Microsoft applications including Microsoft SQL Server 2008 also expose their management interface via PowerShell cmdlets.[12]
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.
- ^ "PowerShell". Microsoft Apps. Retrieved September 18, 2025.
- ^ "v7.5.3 Release of PowerShell". GitHub. September 10, 2025. Retrieved September 18, 2025.
- ^ "v7.6.0-preview.4 Release of PowerShell". GitHub. April 8, 2025. Retrieved September 18, 2025.
- ^ "PowerShell for every system!". June 12, 2017 – via GitHub.com.
- ^ Snover, Jeffrey (May 25, 2008). "PowerShell and WPF: WTF". Windows PowerShell Blog. Microsoft.
- ^ a b Cite error: The named reference
ars-opensourcewas invoked but never defined (see the help page). - ^ "Announcing Windows 10 Insider Preview Build 14971 for PC". November 17, 2016.
- ^ "PowerShell is replacing Command Prompt".
- ^ a b Cite error: The named reference
howwas invoked but never defined (see the help page). - ^ Truher, Jim (December 2007). "Extend Windows PowerShell With Custom Commands". MSDN Magazine. Microsoft. Archived from the original on October 6, 2008.
- ^ Lowe, Scott (January 4, 2007). "Exchange 2007: Get used to the command line". TechRepublic. CBS Interactive. Archived from the original on November 16, 2018. Retrieved May 12, 2020.
- ^ Snover, Jeffrey (November 13, 2007). "SQL Server Support for PowerShell!". Windows PowerShell Blog (blog posting). Microsoft. Archived from the original on November 15, 2007. Retrieved November 13, 2007.