.ps1
   HOME

TheInfoList



OR:

PowerShell is a
shell Shell may refer to: Architecture and design * Shell (structure), a thin structure ** Concrete shell, a thin shell of concrete, usually with no interior columns or exterior buttresses Science Biology * Seashell, a hard outer layer of a marine ani ...
program Program (American English; also Commonwealth English in terms of computer programming and related activities) or programme (Commonwealth English in all other meanings), programmer, or programming may refer to: Business and management * Program m ...
developed by
Microsoft Microsoft Corporation is an American multinational corporation and technology company, technology conglomerate headquartered in Redmond, Washington. Founded in 1975, the company became influential in the History of personal computers#The ear ...
for task automation and
configuration management Configuration management (CM) is a management process for establishing and maintaining consistency of a product's performance, functional, and physical attributes with its requirements, design, and operational information throughout its life. ...
. As is typical for a shell, it provides a
command-line A command-line interface (CLI) is a means of interacting with software via commands each formatted as a line of text. Command-line interfaces emerged in the mid-1960s, on computer terminals, as an interactive and more user-friendly alternativ ...
interpreter Interpreting is translation from a spoken or signed language into another language, usually in real time to facilitate live communication. It is distinguished from the translation of a written text, which can be more deliberative and make use o ...
for interactive use and a
script Script may refer to: Writing systems * Script, a distinctive writing system, based on a repertoire of specific elements or symbols, or that repertoire * Script (styles of handwriting) ** Script typeface, a typeface with characteristics of handw ...
interpreter for automation via a
language Language is a structured system of communication that consists of grammar and vocabulary. It is the primary means by which humans convey meaning, both in spoken and signed language, signed forms, and may also be conveyed through writing syste ...
defined for it. Originally only for Windows, known as Windows PowerShell, it was made
open-source Open source is source code that is made freely available for possible modification and redistribution. Products include permission to use and view the source code, design documents, or content of the product. The open source model is a decentrali ...
and
cross-platform Within computing, cross-platform software (also called multi-platform software, platform-agnostic software, or platform-independent software) is computer software that is designed to work in several Computing platform, computing platforms. Some ...
on August 18, 2016, with the introduction of PowerShell Core. The former is built on the .NET Framework; the latter on
.NET The .NET platform (pronounced as "''dot net"'') is a free and open-source, managed code, managed computer software framework for Microsoft Windows, Windows, Linux, and macOS operating systems. The project is mainly developed by Microsoft emplo ...
(previously .NET Core). PowerShell is bundled with current versions of Windows and can be installed on
macOS macOS, previously OS X and originally Mac OS X, is a Unix, Unix-based operating system developed and marketed by Apple Inc., Apple since 2001. It is the current operating system for Apple's Mac (computer), Mac computers. With ...
and
Linux Linux ( ) is a family of open source Unix-like operating systems based on the Linux kernel, an kernel (operating system), operating system kernel first released on September 17, 1991, by Linus Torvalds. Linux is typically package manager, pac ...
. Since
Windows 10 Windows 10 is a major release of Microsoft's Windows NT operating system. The successor to Windows 8.1, it was Software release cycle#Release to manufacturing (RTM), released to manufacturing on July 15, 2015, and later to retail on July 2 ...
build 14971, PowerShell replaced
Command Prompt A command-line interface (CLI) is a means of interacting with software via commands each formatted as a line of text. Command-line interfaces emerged in the mid-1960s, on computer terminals, as an interactive and more user-friendly alternativ ...
as the default
command shell An operating system shell is a computer program that provides relatively broad and direct access to the system on which it runs. The term ''shell'' refers to how it is a relatively thin layer around an operating system. A shell is generally a ...
exposed by
File Explorer File Explorer, previously known as Windows Explorer, is a file manager application and default desktop environment that is included with releases of the Microsoft Windows operating system from Windows 95 onwards. It provides a graphical user i ...
. 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 The Windows Registry is a hierarchical database that stores low-level settings for the Microsoft Windows operating system and for applications that opt to use the registry. The kernel, device drivers, services, Security Accounts Manager, a ...
, which are made available to PowerShell via ''providers''. Third-party developers can add cmdlets and providers to PowerShell. Cmdlets may be used by scripts, which may in turn be packaged into modules. Cmdlets work in tandem with the .NET
API An application programming interface (API) is a connection between computers or between computer programs. It is a type of software interface, offering a service to other pieces of software. A document or standard that describes how to build ...
. PowerShell's support for .NET Remoting,
WS-Management WS-Management (Web Services-Management) is a DMTF open standard defining a SOAP-based protocol for the management of servers, devices, applications and various Web services. WS-Management provides a common way for systems to access and exchange ma ...
, CIM, and
SSH The Secure Shell Protocol (SSH Protocol) is a cryptographic network protocol for operating network services securely over an unsecured network. Its most notable applications are remote login and command-line execution. SSH was designed for Un ...
enables administrators to perform administrative tasks on both local and remote Windows systems. PowerShell also provides a hosting
API An application programming interface (API) is a connection between computers or between computer programs. It is a type of software interface, offering a service to other pieces of software. A document or standard that describes how to build ...
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 A graphical user interface, or GUI, is a form of user interface that allows users to interact with electronic devices through graphical icons and visual indicators such as secondary notation. In many applications, GUIs are used instead of te ...
. This capability has been used by
Microsoft Exchange Server Microsoft Exchange Server is a mail server and calendaring server developed by Microsoft. It runs exclusively on Windows Server operating systems. The first version was called Exchange Server 4.0, to position it as the successor to the relat ...
2007 to expose its management functionality as PowerShell cmdlets and providers and implement the
graphical Graphics () are visual images or designs on some surface, such as a wall, canvas, screen, paper, or stone, to inform, illustrate, or entertain. In contemporary usage, it includes a pictorial representation of the data, as in design and manufactu ...
management tools as PowerShell hosts which invoke the necessary cmdlets. Other Microsoft applications including Microsoft SQL Server 2008 also expose their management interface via PowerShell cmdlets. PowerShell includes its own extensive, console-based help (similar to
man page A man page (short for manual page) is a form of software documentation found on Unix and Unix-like operating systems. Topics covered include programs, system libraries, system calls, and sometimes local system details. The local host administr ...
s in
Unix shell A Unix shell is a Command-line_interface#Command-line_interpreter, command-line interpreter or shell (computing), shell that provides a command line user interface for Unix-like operating systems. The shell is both an interactive command languag ...
s) 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.


Background

Shell programs, including PowerShell, trace lineage to shells in older
operating system An operating system (OS) is system software that manages computer hardware and software resources, and provides common daemon (computing), services for computer programs. Time-sharing operating systems scheduler (computing), schedule tasks for ...
s such as
MS-DOS MS-DOS ( ; acronym for Microsoft Disk Operating System, also known as Microsoft DOS) is an operating system for x86-based personal computers mostly developed by Microsoft. Collectively, MS-DOS, its rebranding as IBM PC DOS, and a few op ...
and
Xenix Xenix is a discontinued Unix operating system for various microcomputer platforms, licensed by Microsoft from AT&T Corporation. The first version was released in 1980, and Xenix was the most common Unix variant during the mid- to late-1980s. T ...
which exposed system functionality to the user almost exclusively via a
command-line interface A command-line interface (CLI) is a means of interacting with software via command (computing), commands each formatted as a line of text. Command-line interfaces emerged in the mid-1960s, on computer terminals, as an interactive and more user ...
(CLI) although also came with a complementary graphical
DOS Shell DOS Shell is a file manager that debuted in MS-DOS and PC DOS version 4.0, released in June 1988. It was no longer included in MS-DOS version 6, but remained part of the Supplemental Disk. The Supplemental Disk could be ordered or could b ...
. The
Windows 9x Windows 9x is a generic term referring to a line of discontinued Microsoft Windows operating systems released from 1995 to 2000 and supported until 2006, which were based on the kernel introduced in Windows 95 and modified in succeeding version ...
family came bundled with
COMMAND.COM COMMAND.COM is the default command-line interpreter for MS-DOS, Windows 95, Windows 98 and Windows Me. In the case of DOS, it is the default user interface as well. It has an additional role as the usual first program run after boot ( ini ...
, the command-line environment of MS-DOS. The
Windows NT Windows NT is a Proprietary software, proprietary Graphical user interface, graphical operating system produced by Microsoft as part of its Windows product line, the first version of which, Windows NT 3.1, was released on July 27, 1993. Original ...
and
Windows CE Windows CE, later known as Windows Embedded CE and Windows Embedded Compact, is a discontinued operating system developed by Microsoft for mobile and embedded devices. It was part of the Windows Embedded family and served as the software foun ...
families, however, came with the newer
cmd.exe cmd.exe, a.k.a. Command Prompt, is a shell program on later versions of Windows ( NT and CE families), OS/2,, eComStation, ArcaOS, and ReactOS. In some versions of Windows ( CE .NET 4.2, CE 5.0 and Embedded CE 6.0) it is referred to as ...
a significant upgrade from COMMAND.COM. Both environments provide CLI for both internal and external commands and automation via
batch file A batch file is a Scripting language, script file in DOS, OS/2 and Microsoft Windows. It consists of a series of Command (computing), commands to be executed by the command-line interpreter, stored in a plain text file. A batch file may contain a ...
s a relatively primitive language for scripting. To address limitations of these shells including the inability to directly use a
software component A software component is a modular unit of software that encapsulates specific functionality. The desired characteristics of a component are reusability and maintainability. Value Components allow software development to assemble software ...
exposed via
COM Com or COM may refer to: Computing * COM (hardware interface), a serial port interface on IBM PC-compatible computers * COM file, or .com file, short for "command", a file extension for an executable file in MS-DOS * .com, an Internet top-level ...
Microsoft introduced the
Windows Script Host The Microsoft Windows Script Host (WSH) (formerly named Windows Scripting Host) is an automation technology for Microsoft Windows operating systems that provides scripting abilities comparable to batch files, but with a wider range of supported fe ...
in 1998 with
Windows 98 Windows 98 is a consumer-oriented operating system developed by Microsoft as part of its Windows 9x family of Microsoft Windows operating systems. It was the second operating system in the 9x line, as the successor to Windows 95. It was Software ...
, and its command-line based host, cscript.exe. It integrates with the Active Scripting, Active Script engine and allows scripts to be written in compatible languages, such as JScript and VBScript. These scripts can use COM components directly, but it has relatively inaccessible documentation and gained a reputation as a system Vulnerability (computing), vulnerability vector after several high-profile computer viruses exploited weaknesses in its security provisions. Different versions of Windows provided various special-purpose command-line interpreters (such as netsh and Windows Management Instrumentation Command-line, WMIC) with their own command sets but they were not interoperable. Windows Server 2003 further attempted to improve the command-line experience but scripting support was still unsatisfactory.


Kermit

By the late 1990s, Intel had come to Microsoft asking for help in making Windows, which ran on Intel CPUs, a more appropriate platform to support the development of future Intel CPUs. At the time, Intel CPU development was accomplished on Sun Microsystems computers which ran Oracle Solaris, Solaris (a Unix variant) on RISC-architecture CPUs. The ability to run Intel's many KornShell automation scripts on Windows was identified as a key capability. Internally, Microsoft began an effort to create a Windows port of Korn Shell, which was code-named Kermit. Intel ultimately pivoted to a
Linux Linux ( ) is a family of open source Unix-like operating systems based on the Linux kernel, an kernel (operating system), operating system kernel first released on September 17, 1991, by Linus Torvalds. Linux is typically package manager, pac ...
-based development platform that could run on Intel CPUs, rendering the Kermit project redundant. However, with a fully funded team, Microsoft program manager Jeffrey Snover realized there was an opportunity to create a more general-purpose solution to Microsoft's problem of administrative automation.


Monad

By 2002, Microsoft had started to develop a new approach to command-line management, including a CLI called Monad (also known as or MSH). The ideas behind it were published in August 2002 in a white paper called the "Monad Manifesto" by its chief architect, Jeffrey Snover. In a 2017 interview, Snover explains the genesis of PowerShell, saying that he had been trying to make Unix tools available on Windows, which didn't work due to "Unix philosophy, core architectural difference[s] between Windows and Linux". Specifically, he noted that
Linux Linux ( ) is a family of open source Unix-like operating systems based on the Linux kernel, an kernel (operating system), operating system kernel first released on September 17, 1991, by Linus Torvalds. Linux is typically package manager, pac ...
considers everything a text file, whereas Windows considers everything an "
API An application programming interface (API) is a connection between computers or between computer programs. It is a type of software interface, offering a service to other pieces of software. A document or standard that describes how to build ...
that returns structured data". They were fundamentally incompatible, which led him to take a different approach. Monad was to be a new extensible CLI with a fresh design capable of automating a range of core administrative tasks. Microsoft first demonstrated Monad publicly at the Professional Development Conference in Los Angeles in October 2003. A few months later, they opened up private beta, which eventually led to a public beta. Microsoft published the first Monad public Development stage#Beta, beta release on June 17, 2005, and the Beta 2 on September 11, 2005, and Beta 3 on January 10, 2006.


PowerShell

On April 25, 2006, not long after the initial Monad announcement, Microsoft announced that Monad had been renamed Windows PowerShell, positioning it as a significant part of its management technology offerings. Release Candidate (RC) 1 of PowerShell was released at the same time. A significant aspect of both the name change and the RC was that this was now a component of Windows, rather than a mere add-on. Release Candidate 2 of PowerShell version 1 was released on September 26, 2006, with final Software release life cycle#Release to the Web (RTW), release to the web on November 14, 2006. PowerShell for earlier versions of Windows was released on January 30, 2007. PowerShell v2.0 development began before PowerShell v1.0 shipped. During the development, Microsoft shipped three Community Technology Preview, community technology previews (CTP). Microsoft made these releases available to the public. The last CTP release of Windows PowerShell v2.0 was made available in December 2008. PowerShell v2.0 was completed and released to manufacturing in August 2009, as an integral part of Windows 7 and Windows Server 2008 R2. Versions of PowerShell for Windows XP, Windows Server 2003, Windows Vista and Windows Server 2008 were released in October 2009 and are available for download for both 32-bit and 64-bit platforms. In an October 2009 issue of ''Microsoft TechNet, TechNet Magazine'', Microsoft called proficiency with PowerShell "the single most important skill a Windows System administrator, administrator will need in the coming years". Windows 10 shipped with Pester, a script validation suite for PowerShell. On August 18, 2016, Microsoft announced that they had made PowerShell open-source and cross-platform with support for Windows,
macOS macOS, previously OS X and originally Mac OS X, is a Unix, Unix-based operating system developed and marketed by Apple Inc., Apple since 2001. It is the current operating system for Apple's Mac (computer), Mac computers. With ...
, CentOS and Ubuntu (operating system), Ubuntu. The source code was published on GitHub. The move to open source created a second incarnation of PowerShell called "PowerShell Core", which runs on .NET Core. It is distinct from "Windows PowerShell", which runs on the full .NET Framework. Starting with version 5.1, PowerShell Core is bundled with Windows Server 2016#Nano Server, Windows Server 2016 Nano Server.


Pash

A project named ''Pash'', a pun on the widely known "bash (Unix shell), bash" Unix shell, has been an
open-source Open source is source code that is made freely available for possible modification and redistribution. Products include permission to use and view the source code, design documents, or content of the product. The open source model is a decentrali ...
and
cross-platform Within computing, cross-platform software (also called multi-platform software, platform-agnostic software, or platform-independent software) is computer software that is designed to work in several Computing platform, computing platforms. Some ...
reimplementation of PowerShell via the Mono (software), Mono framework. Pash was created by Igor Moochnick, written in C Sharp (programming language), C# and was released under the GNU General Public License. Pash development stalled in 2008, was restarted on GitHub in 2012, and finally ceased in 2016 when PowerShell was officially made open-source and cross-platform.


Design


Philosophy

A key design goal for PowerShell was to leverage the large number of
API An application programming interface (API) is a connection between computers or between computer programs. It is a type of software interface, offering a service to other pieces of software. A document or standard that describes how to build ...
s that already existed in Windows, Windows Management Instrumentation, .NET Framework, and other software. PowerShell cmdlets generally wrap and expose existing functionality instead of implementing new functionality. The intent was to provide an administrator-friendly, more-consistent interface between administrators and a wide range of underlying functionality. With PowerShell, an administrator doesn't need to know .NET, WMI, or low-level API coding, and can instead focus on using the cmdlets exposed by PowerShell. In this regard, PowerShell creates little new functionality, instead focusing on making existing functionality more accessible to a particular audience.


Grammar

PowerShell's developers based the core grammar of the tool on that of the POSIX, POSIX 1003.2 KornShell. However, PowerShell's language was also influenced by PHP, Perl, and many other existing languages.


Named Commands

PowerShell can execute four kinds of named commands: * ''cmdlets'' ( .NET Framework programs designed to interact with PowerShell) * PowerShell scripts (files suffixed by .ps1) * PowerShell functions * Standalone executable programs If a command is a standalone executable program, PowerShell launches it in a separate process (computing), process; if it is a cmdlet, it executes in the PowerShell process. PowerShell provides an interactive
command-line interface A command-line interface (CLI) is a means of interacting with software via command (computing), commands each formatted as a line of text. Command-line interfaces emerged in the mid-1960s, on computer terminals, as an interactive and more user ...
, where the commands can be entered and their output displayed. The user interface offers customizable Command-line completion, tab completion. PowerShell enables the creation of ''alias (command), aliases'' for cmdlets, which PowerShell textually translates into invocations of the original commands. PowerShell supports both named parameter, named and positional parameter (computer science), parameters for commands. In executing a cmdlet, the job of binding the argument value to the parameter is done by PowerShell itself, but for external executables, arguments are parsed by the external executable independently of PowerShell interpretation.


Extended Type System

The PowerShell ''Extended Type System'' (''ETS'') is based on the .NET type system, but with extended semantics (for example, propertySets and third-party extensibility). For example, it enables the creation of different views of objects by exposing only a subset of the data fields, properties, and methods, as well as specifying custom formatting and sorting behavior. These views are mapped to the original object using XML-based configuration files.


Cmdlets

A cmdlet is a .NET class (computing), class that derives either from Cmdlet or from PSCmdlet; the latter used when it needs to interact with the PowerShell runtime. The base classes specify methods BeginProcessing(), ProcessRecord() and EndProcessing() which a cmdlet overrides to provide functionality based on the events that these functions represent. ProcessRecord() is called if the object receives pipeline input. If a collection of objects is piped, the method is invoked for each object in the collection. The cmdlet class must have the Attribute (computing), attribute CmdletAttribute which specifies the verb and the noun that make up the name of the cmdlet. A cmdlet name follows a ''Verb-Noun'' naming pattern, such as ''Get-ChildItem'', which tends to make it self-documenting code, self-documented. Common verbs are provided as an enumerated type, enum. If a cmdlet receives either pipeline input or command-line parameter input, there must be a corresponding property (programming), property in the class, with a mutator method, mutator implementation. PowerShell invokes the mutator with the parameter value or pipeline input, which is saved by the mutator implementation in class variables. These values are then referred to by the methods which implement the functionality. Properties that map to command-line parameters are marked by ParameterAttribute and are set before the call to BeginProcessing(). Those which map to pipeline input are also flanked by ParameterAttribute, but with the ValueFromPipeline attribute parameter set. A cmdlet can use any .NET Framework, .NET
API An application programming interface (API) is a connection between computers or between computer programs. It is a type of software interface, offering a service to other pieces of software. A document or standard that describes how to build ...
and may be written in any List of CLI languages, .NET language. In addition, PowerShell makes certain APIs available, such as WriteObject(), which is used to access PowerShell-specific functionality, such as writing objects to the pipeline. A cmdlet can use .NET a data access
API An application programming interface (API) is a connection between computers or between computer programs. It is a type of software interface, offering a service to other pieces of software. A document or standard that describes how to build ...
directly or use the PowerShell infrastructure of ''Providers'', which make data stores addressable using unique Path (computing), paths. Data stores are exposed using drive letter assignment, drive letters, and hierarchies within them, addressed as directories. PowerShell ships with providers for the file system, Windows Registry, registry, the public key certificate, certificate store, as well as the namespaces for command aliases, variables, and functions. PowerShell also includes various cmdlets for managing various Microsoft Windows, Windows systems, including the file system, or using Windows Management Instrumentation to control List of Microsoft Windows components, Windows components. Other applications can register cmdlets with PowerShell, thus allowing it to manage them, and, if they enclose any datastore (such as a database), they can add specific providers as well. A cmdlet can be added to the shell via modules or before v2 snap-ins. Users are not limited to the cmdlets included in the base PowerShell installation. The number of cmdlets included in the base PowerShell install for various versions: * Windows PowerShell 1.0: 129 * Windows PowerShell 2.0: 632 * Windows PowerShell 3.0: ≈1,000 * Windows PowerShell 5.0: ≈1,300 * Windows PowerShell 5.1: 1,586 * PowerShell 7.0: 1,507 * PowerShell 7.4: 1,656


Pipeline

To enable Pipeline (computing), pipeline Semantics (computer science), semantics, similar to the pipeline (Unix), Unix pipeline, a cmdlet receives input and outputs result as objects. If a cmdlet outputs multiple objects, each object of the collection is passed through the pipeline before the next object is processed. A PowerShell pipeline enables complex logic using the pipe (, ) operator to connect stages. However, the PowerShell pipeline differs from Unix pipelines in that stages execute ''within'' the PowerShell runtime rather than as a set of processes coordinated by the
operating system An operating system (OS) is system software that manages computer hardware and software resources, and provides common daemon (computing), services for computer programs. Time-sharing operating systems scheduler (computing), schedule tasks for ...
. Additionally, structured .NET objects, rather than bitstream, byte streams, are passed from one stage to the next. Using object (computer science), objects and executing stages within the PowerShell runtime eliminates the need to serialization (computing), serialize data structures, or to extract them by explicitly parser, parsing text output. An object can also Encapsulation (computer programming), encapsulate certain functions that work on the contained data, which become available to the recipient command for use. For the last cmdlet in a pipeline, PowerShell automatically pipes its output object to the Out-Default cmdlet, which transforms the objects into a stream of format objects and then renders those to the screen. Because a PowerShell object is a .NET object, it has a .ToString() method which is used to serialize object state. In addition, PowerShell allows formatting definitions to be specified, so the text representation of objects can be customized by choosing which data elements to display, and in what manner. However, in order to maintain backward compatibility, if an external executable is used in a pipeline, it receives a text stream representing the object, instead of directly integrating with the PowerShell type system.


Scripting

PowerShell includes a dynamically typed scripting language, language for scripting which can implement complex operations using cmdlets imperative programming, imperatively. The language supports variables, functions, branching (conditional (programming), if-then-else), loops (while loop, while, do while loop, do, for loop, for, and foreach), structured error/exception handling and closure (computer science), closures/anonymous function, lambda expressions, as well as integration with .NET. Variables in PowerShell scripts are prefixed with $. Variables can be assigned any value, including the output of cmdlets. Strings can be enclosed either in single quotes or in double quotes: when using double quotes, variables will be expanded even if they are inside the quotation marks. Enclosing the path to a file in braces preceded by a dollar sign (as in $) creates a reference to the contents of the file. If it is used as an Value (computer science), L-value, anything assigned to it will be written to the file. When used as an Value (computer science), R-value, the contents of the file will be read. If an object is assigned, it is serialized before being stored. Object members can be accessed using . notation, as in C# syntax. PowerShell provides special variables, such as $args, which is an array of all the command-line arguments passed to a function from the command line, and $_, which refers to the current object in the pipeline. PowerShell also provides array data type, arrays and associative arrays. The PowerShell language also evaluates arithmetic expressions entered on the command line immediately, and it parses common abbreviations, such as GB, MB, and KB. Using the function keyword, PowerShell provides for the creation of functions. A simple function has the following general look: function name ([Type]$Param1, [Type]$Param2) However, PowerShell allows for advanced functions that support named parameters, positional parameters, switch parameters and dynamic parameters. function Verb-Noun The defined function is invoked in either of the following forms: name value1 value2 Verb-Noun -Param1 value1 -Param2 value2 PowerShell allows any static .NET methods to be called by providing their namespaces enclosed in brackets ([]), and then using a pair of colons (::) to indicate the static method. For example: [Console]::WriteLine("PowerShell") There are dozens of ways to create objects in PowerShell. Once created, one can access the properties and instance methods of an object using the . notation. PowerShell accepts string (computer science), strings, both raw and escape character, escaped. A string enclosed between single quotation marks is a raw string while a string enclosed between double quotation marks is an escaped string. PowerShell treats straight and curly quotes as equivalent. The following list of special characters is supported by PowerShell: For error handling, PowerShell provides a .NET-based Exception handling syntax, exception-handling mechanism. In case of errors, objects containing information about the error (Exception object) are thrown, which are caught using the try ... catch construct (although a trap construct is supported as well). PowerShell can be configured to silently resume execution, without actually throwing the exception; this can be done either on a single command, a single session or perpetually. Scripts written using PowerShell can be made to persist across sessions in either a .ps1 file or a .psm1 file (the latter is used to implement a module). Later, either the entire script or individual functions in the script can be used. Scripts and functions operate analogously with cmdlets, in that they can be used as commands in pipelines, and parameters can be bound to them. Pipeline objects can be passed between functions, scripts, and cmdlets seamlessly. To prevent unintentional running of scripts, script execution is disabled by default and must be enabled explicitly. Enabling of scripts can be performed either at system, user or session level. PowerShell scripts can be code signing, signed to verify their integrity, and are subject to Code Access Security. The PowerShell language supports binary prefix notation similar to the scientific notation supported by many programming languages in the C-family.


Hosting

One can also use PowerShell embedded in a management application, which uses the PowerShell runtime to implement the management functionality. For this, PowerShell provides a managed code, managed hosting
API An application programming interface (API) is a connection between computers or between computer programs. It is a type of software interface, offering a service to other pieces of software. A document or standard that describes how to build ...
. Via the APIs, the application can instantiate a ''runspace'' (one instantiation of the PowerShell runtime), which runs in the application's process (computing), process and is exposed as a Runspace object. The state of the runspace is encased in a SessionState object. When the runspace is created, the PowerShell runtime initializes the instantiation, including initializing the providers and enumerating the cmdlets, and updates the SessionState object accordingly. The Runspace then must be opened for either synchronous processing or asynchronous processing. After that it can be used to execute commands. To execute a command, a pipeline (represented by a Pipeline object) must be created and associated with the runspace. The pipeline object is then populated with the cmdlets that make up the pipeline. For sequential operations (as in a PowerShell script), a Pipeline object is created for each statement and nested inside another Pipeline object. When a pipeline is created, PowerShell invokes the pipeline processor, which resolves the cmdlets into their respective assembly (CLI), assemblies (the ''command processor'') and adds a reference to them to the pipeline, and associates them with InputPipe, OutputPipe and ErrorOutputPipe objects, to represent the connection with the pipeline. The types are verified and parameters bound using Reflection (computer science), reflection. Once the pipeline is set up, the host calls the Invoke() method to run the commands, or its asynchronous equivalent, InvokeAsync(). If the pipeline has the Write-Host cmdlet at the end of the pipeline, it writes the result onto the console screen. If not, the results are handed over to the host, which might either apply further processing or display the output itself.
Microsoft Exchange Server Microsoft Exchange Server is a mail server and calendaring server developed by Microsoft. It runs exclusively on Windows Server operating systems. The first version was called Exchange Server 4.0, to position it as the successor to the relat ...
2007 uses the hosting APIs to provide its management GUI. Each operation exposed in the GUI is mapped to a sequence of PowerShell commands (or pipelines). The host creates the pipeline and executes them. In fact, the interactive PowerShell console itself is a PowerShell host, which interpreter, interprets the scripts entered at command line and creates the necessary Pipeline objects and invokes them.


Desired State Configuration

DSC allows for declaratively specifying how a software environment should be configured. Upon running a ''configuration'', DSC will ensure that the system gets the state described in the configuration. DSC configurations are idempotent. The ''Local Configuration Manager'' (LCM) periodically polls the system using the control flow described by ''resources'' (imperative pieces of DSC) to make sure that the state of a configuration is maintained.


Versions

All major releases are still supported, and each major release has featured backwards compatibility with preceding versions.


Project Monad

Initially using the code name "Monad", PowerShell was first shown publicly at the Professional Developers Conference in October 2003 in Los Angeles.


Windows PowerShell


1.0

Named Windows PowerShell, version 1.0 was released in November 2006 for Windows XP SP2, Windows Server 2003 SP1 and Windows Vista and as an optional component of Windows Server 2008.


2.0

Version 2.0 integrates with Windows 7 and Windows Server 2008 R2 and is released for Windows XP with Service Pack 3, Windows Server 2003 with Service Pack 2, and Windows Vista with Service Pack 1. The version includes changes to the language and hosting API, in addition to including more than 240 new cmdlets. New features include: * Remoting: Using
WS-Management WS-Management (Web Services-Management) is a DMTF open standard defining a SOAP-based protocol for the management of servers, devices, applications and various Web services. WS-Management provides a common way for systems to access and exchange ma ...
, Allows scripts and cmdlets to be invoked on a remote machine or a large set of remote machines. * Background jobs: Also called a ''PSJob'', it allows a command sequence (script) or pipeline to be invoked asynchronously. Jobs can be run on the local machine or on multiple remote machines. An interactive cmdlet in a PSJob blocks the execution of the job until user input is provided. * Transactions: Enable cmdlet and developers can perform transaction processing, transactional operations. Includes transaction cmdlets for starting, committing, and rolling back a ''PSTransaction'' as well as features to manage and direct the transaction to the participating cmdlet and provider operations. The PowerShell Registry provider supports transactions. * Advanced functions: Initially called "script cmdlets", these bundled cmdlets was later renamed "advanced functions". * SteppablePipelines: This allows the user to control when the BeginProcessing(), ProcessRecord() and EndProcessing() functions of a cmdlet are called. * Modules: Allows script developers and administrators to organize and partition scripts in self-contained, reusable units. Code from a Modular programming, module executes in its own self-contained context and does not affect the state outside the module. Modules can define a restricted runspace environment by using a script. They have a persistent state as well as public and private members. * Data language: A domain-specific subset of the language that allows data definitions to be decoupled from the scripts and allows internationalization and localization, localized string resources to be imported into the script at runtime (''Script Internationalization''). * Script debugging: Allows breakpoints to be set in a script or function. Breakpoints can be set on lines, line & columns, commands and read or write access of variables. It includes a set of cmdlets to control the breakpoints via script. * Eventing: Allows listening, forwarding, and acting on management and system events. Eventing allows hosts to be notified about state changes to their managed entities. It also enables scripts to subscribe to ''ObjectEvents'', ''PSEvents'', and ''WmiEvents'' and process them synchronously and asynchronously. * Integrated Scripting Environment (ISE): GUI-based host that provides integrated debugger, syntax highlighting, tab completion and up to 8 Unicode-enabled consoles (Runspaces) in a tabbed UI, as well as the ability to run only the selected parts in a script. * Network file transfer: Native support for prioritized, throttled, and asynchronous transfer of files between machines using the Background Intelligent Transfer Service (BITS). * New cmdlets: Including Out-GridView, which displays tabular data in the Windows Presentation Foundation, WPF Grid view, GridView object, on systems that allow it, and if ISE is installed and enabled. * New operators: -Split, -Join, and Splatting (@) operators. * Exception handling with Try-Catch-Finally: Unlike other .NET languages, this allows multiple exception types for a single catch block. * Nestable Here-Strings: here document, Here-Strings have been improved and can now nest. * Block comments: Support for block comments using <# and #> as delimiters. * New APIs: The new APIs range from handing more control over the parser and runtime to the host, to creating and managing collection of Runspaces (RunspacePools) as well as the ability to create ''Restricted Runspaces'' which only allow a configured subset of PowerShell to be invoked. The new APIs also support participation in a transaction


3.0

Version 3.0 integrates with Windows 8, Windows Server 2012, Windows 7 with Service Pack 1, Windows Server 2008 with Service Pack 1, and Windows Server 2008 R2 with Service Pack 1. Version 3.0 is part of a larger package
Windows Management Framework
3.0 (WMF3), which also contains the WinRM service to support remoting. Microsoft made several Community Technology Preview releases of WMF3. An early community technology preview 2 (CTP 2) version of Windows Management Framework 3.0 was released on December 2, 2011. Windows Management Framework 3.0 was released for general availability in December 2012 and is included with Windows 8 and Windows Server 2012 by default. New features include: * Scheduled jobs: Jobs can be scheduled to run on a preset time and date using the Windows Task Scheduler infrastructure. * Session connectivity: Sessions can be disconnected and reconnected. Remote sessions have become more tolerant of temporary network failures. * Improved code writing: Code completion (IntelliSense) and snippet (programming), snippets are added. ISE allows users to use dialog boxes to fill in parameters for cmdlets. * Delegation support: Administrative tasks can be delegated to users who do not have permissions for that type of task, without granting them perpetual additional permissions. * Help update: Help documentations can be updated via Update-Help command. * Automatic module detection: Modules are loaded implicitly whenever a command from that module is invoked. Code completion works for unloaded modules as well. * New commands: Dozens of new modules were added, including functionality to manage disks get-WmiObject win32_logicaldisk, volumes, firewalls, network connections, and printers, which had previously been performed via WMI.


4.0

Version 4.0 integrates with Windows 8.1, Windows Server 2012 R2, Windows 7 SP1, Windows Server 2008 R2 SP1 and Windows Server 2012. New features include: * Desired State Configuration: Declarative language extensions and tools that enable the deployment and management of configuration data for systems using the DMTF management standards and
WS-Management WS-Management (Web Services-Management) is a DMTF open standard defining a SOAP-based protocol for the management of servers, devices, applications and various Web services. WS-Management provides a common way for systems to access and exchange ma ...
Protocol * New default execution policy: On Windows Servers, the default execution policy is now RemoteSigned. * Save-Help: Help can now be saved for modules that are installed on remote computers. * Enhanced debugging: The debugger now supports debugging workflows, remote script execution and preserving debugging sessions across session reconnections. * -PipelineVariable switch: A new ubiquitous parameter to expose the current pipeline object as a variable for programming purposes * Network diagnostics to manage physical and Hyper-V's virtualized network switches * Where and ForEach method syntax provides an alternate method of filtering and iterating over objects.


5.0

Version 5.0 was re-released with Windows Management Framework (WMF) 5.0 on February 24, 2016, following an initial release with a severe bug. Key features included: * The new class reserved word, keyword that creates classes for object-oriented programming * The new enum keyword that creates enumeration, enums * OneGet cmdlets to support the Chocolatey (software package manager), Chocolatey package management, package manager * Extending support for switch management to Data link layer, layer 2 network switches. * Debugging for background jobs and instances hosted in other processes (each of which is called a "runspace") * Desired State Configuration (DSC) Local Configuration Manager (LCM) version 2.0 * DSC partial configurations * DSC Local Configuration Manager meta-configurations * Authoring of DSC resources using classes


= 5.1

= Version 5.1 was released along with the Windows 10 Anniversary Update on August 2, 2016, and in Windows Server 2016. PackageManagement now supports proxies, PSReadLine now has ViMode support, and two new cmdlets were added: Get-TimeZone and Set-TimeZone. The LocalAccounts module allows for adding/removing local user accounts. A preview for was released for Windows 7, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, and Windows Server 2012 R2 on July 16, 2016, and was released on January 19, 2017. Version 5.1 is the first to come in two editions of "Desktop" and "Core". The "Desktop" edition is the continuation product line that uses the .NET Framework, and the "Core" edition runs on .NET Core and is bundled with Windows Server 2016 Nano Server. In exchange for smaller footprint, the latter lacks some features such as the cmdlets to manage clipboard or join a computer to a domain, WMI version 1 cmdlets, Event Log cmdlets and profiles. This was the final version exclusively for Windows. Version 5.1 remains pre-installed on Windows 10, Windows 11 and Windows Server 2022, while the .NET version needs to be installed separately and can run side-by-side with the .NET Framework version.


PowerShell Core


6.0

Renamed to PowerShell Core, version 6.0 was first announced on August 18, 2016, when Microsoft unveiled its decision to make the product Cross-platform software, cross-platform, independent of Windows, free and open source. It achieved general availability on January 10, 2018, for Windows,
macOS macOS, previously OS X and originally Mac OS X, is a Unix, Unix-based operating system developed and marketed by Apple Inc., Apple since 2001. It is the current operating system for Apple's Mac (computer), Mac computers. With ...
and
Linux Linux ( ) is a family of open source Unix-like operating systems based on the Linux kernel, an kernel (operating system), operating system kernel first released on September 17, 1991, by Linus Torvalds. Linux is typically package manager, pac ...
. It has its own support lifecycle and adheres to the Microsoft lifecycle policy that is introduced with Windows 10: Only the latest version of PowerShell Core is supported. Microsoft expects to release one minor version for PowerShell Core 6.0 every six months. The most significant change in this version is the expansion to the other platforms. For Windows administrators, this version did not include any major new features. In an interview with the community on January 11, 2018, the development team was asked to list the top 10 most exciting things that would happen for a Windows IT professional who would migrate from version 5.1 to version 6.0. In response, Angel Calvo of Microsoft could only name two: cross-platform and open-source. PowerShell 6 changed to UTF-8 as default encoding, with some exceptions. (version 7.4 changes more to UTF-8)


= 6.1

= According to Microsoft, one of the new features of version 6.1 is "Compatibility with 1900+ existing cmdlets in Windows 10 and Windows Server 2019." Still, no details of these cmdlets can be found in the full version of the change log. Microsoft later professes that this number was insufficient as PowerShell Core failed to replace Windows PowerShell 5.1 and gain traction on Windows. It was, however, popular on Linux.


= 6.2

= Version 6.2 is focused primarily on performance improvements, bug fixes, and smaller cmdlet and language enhancements that improved developer productivity.


PowerShell


7.0

Renamed to simply PowerShell, version 7 replaces the previous product lines: PowerShell Core and Windows PowerShell. The focus in development was to make version 7 a viable replacement for version 5.1, i.e. to have near parity with it in terms of compatibility with modules that ship with Windows. New features include: * The -Parallel switch for the ForEach-Object cmdlet to help handle parallel processing * A new error view * The Get-Error cmdlet * Pipeline chaining operators (&& and , , ) that allow conditional execution of the next cmdlet in the pipeline * The ?: operator for ternary operation * The ?? operator for Null coalescing operator, null coalescing * The ??= operator for null coalescing assignment * Cross-platform Invoke-DscResource (experimental) * Return of the Out-GridView cmdlet * Return of the -ShowWindow switch for the Get-Help


= 7.2

= Version 7.2 is the next long-term support version, after version 7.0. It uses .NET 6.0 and features universal installer packages for Linux. On Windows, updates to version 7.2 and later come via the Microsoft Update service; this feature has been missing from versions 6.0 through 7.1.


= 7.3

= Version 7.3 includes some general Cmdlet updates and fixes, testing for framework dependent package in release pipeline as well as build and packaging improvements.


= 7.4

= Version 7.4 is based on .NET 8 and is considered the long term support (LTS) release. Changes include: * webcmdlets default to UTF-8 Character encoding, encoding (changing from ASCII-superset Windows-1252 aka ISO-8859-1, that does not support Unicode). Previously UTF-8 was default for other, but not all, things.


= 7.5

= Version 7.5, is the latest stable release; released January 2025; built on .NET 9.0.1. It includes enhancements for performance, usability, and security. Key updates include improvements to tab completion, such as better type inference and new argument completers, as well as fixes for Invoke-WebRequest and Invoke-RestMethod. This release also adds the new ConvertTo-CliXml and ConvertFrom-CliXml cmdlets, and updates core modules like PSReadLine and Microsoft.PowerShell.PSResourceGet. Breaking changes include updates to Test-Path parameter handling, and default settings for New-FileCatalog. Prior to GA Release there were 5 preview releases and 1 RC release of PowerShell v7.5.0, with a full release blog post for this version expected soon.


= 7.6

= Version 7.6 is based on .NET 9 and is the latest preview release. The first preview release v7.6.0-preview.2 was released on January 15, 2025. Changes include: TBD


Comparison of cmdlets with similar commands

The following table contains various cmdlets that ship with PowerShell that have notably similar functionality to commands in other shells. Many of these cmdlets are exposed to the user via predefined aliases to make their use familiar to users of the other shells. {, class="wikitable sortable defaultcenter col5left" style="font-size: small;" , +Comparison of cmdlets with commands of other shells , - ! scope="col" style=width:130px;, Cmdlet ! scope="col" class="unsortable" , Predefined
alias ! scope="col" , Command Prompt
command ! scope="col" , Unix shell
command ! scope="col" class="unsortable", Functionality , - ! scope="row" , , , , , , Clears the screen , - ! scope="row" , , , , , , , Copies files and folders , - ! scope="row" , , , , , Lists files and folders , - ! scope="row" , , , , , , , , Lists available commands and gets command path , - ! scope="row" , , , , , , , Reports the content of a file , - ! scope="row" , , , + , , Reports date and time , - ! scope="row" , , , , , , , Reports a command's documentation , - ! scope="row" , , , , , , , , Lists previous commands , - ! scope="row" , , , , , , Reports the working directory , - ! scope="row" , , , , , , , Reports running processes , - ! scope="row" , , , , , , , , Downloads contents from the Internet , - ! scope="row" , , , , , , , Moves files and folders , - ! scope="row" , , , , , Reverts the working directory to the path last pushed , - ! scope="row" , , , , , Pushes the working directory path and changes the working directory , - ! scope="row" , , , , , Reads input into a variable from the command line , - ! scope="row" , , , , , , , , , , , , , , Deletes files or folders , - ! scope="row" , , , , , , , Renames a file or folder , - ! scope="row" , , , {{mono, at (command)#Windows and ReactOS, at, schtasks , {{mono, at (command), at, cron , Schedule tasks to be run at a different time , - ! scope="row" , {{mono, Select-String , {{mono, sls , {{mono, find (Windows), find, {{mono, findstr (computing), findstr , {{mono, grep , Reports lines of a file that match a pattern , - ! scope="row" , {{mono, Set-Date , {{none , {{mono, List of DOS commands#DATE, date + {{mono, List of DOS commands#TIME, time , {{mono, date (Unix command), date -s , Resets the date and time , - ! scope="row" , {{mono, Set-Location , {{mono, sl, {{mono, cd, {{mono, chdir , {{mono, cd (command), cd, {{mono, cd (command), chdir , {{mono, cd , Changes the working path , - ! scope="row" , {{mono, Set-Variable , {{mono, sv, {{mono, set , {{mono, Environment variable#DOS, set , {{mono, env, {{mono, export, {{mono, set, {{mono, setenv , Creates or alters the contents of an environment variable , - ! scope="row" , {{mon
Sort-Object
} , {{mono, sort , {{mon
sort
} , {{mono, sort (Unix) , sort , Sorts lines of text; cmdlet also sorts objects , - ! scope="row" , {{mono, Stop-Process , {{mono, spps, {{mono, kill , {{mono, kill (command), kill,{{efn, name="Available tlist kill" {{mono, taskkill{{efn, name="Available tasklist taskkill" , {{mono, kill{{efn, name="UNIX kill misnomer", 1=Also used in UNIX to send a process any signal (computing), signal, the "Terminate" signal is merely the default , Stops a running process , - ! scope="row" , {{mono, Tee-Object , {{mono, tee , {{n/a , {{mono, tee (command), tee , Pipes input to a file or variable, passing the input along the pipeline , - ! scope="row" , {{mono, Test-Connection{{efn, 1=While the external Ping (networking utility), ping command remains available to PowerShell, Test-Connection's output is a structured object (programming), object that can be programmatically inspected. , {{mono, Ping (networking utility), ping , {{mono, Ping (networking utility), ping , {{mono, Ping (networking utility), ping , Sends ICMP Echo Request, ICMP echo requests to a remote machine , - ! scope="row" , {{mono, Write-Output , {{mono, echo, {{mono, write , {{mono, echo (command), echo , {{mono, echo , Writes text to standard output Notes {{Notelist


Filename extensions

{, class="wikitable" ! Extension ! Description , - , .ps1 , , Script file , - , .psd1 , , Module's manifest file; usually comes with a script module or binary module , - , .psm1 , , Script module file , - , .ps1xml , , Format and type definitions file , - , .psc1 , , Console file , - , .pssc , , Session configuration file , - , .psrc , , Role Capability file


Application support

{, class="wikitable sortable" , - ! Application ! Version ! data-sort-type="number" , Cmdlets ! Provider ! Management GUI , - , Microsoft Exchange Server, Exchange Server , 2007 , {{Yes, 402 , {{Yes , {{Yes , - , Microsoft Windows, Windows Server , Windows Server 2008, 2008 , {{Yes , {{Yes , {{No , - , Microsoft SQL Server , 2008 , {{Yes , {{Yes , {{No , - , SharePoint, Microsoft SharePoint , 2010 , {{Yes , {{Yes , {{No , - , System Center Configuration Manager , 2012 R2 , {{Yes, 400+ , {{Yes , {{No , - , System Center Operations Manager , 2007 , {{Yes, 74 , {{Yes , {{No , - , System Center Virtual Machine Manager , 2007 , {{Yes , {{Yes , {{Yes , - , System Center Data Protection Manager , 2007 , {{Yes , {{No , {{No , - , Windows Compute Cluster Server , 2007 , {{Yes , {{Yes , {{No , - , Microsoft Transporter Suite for IBM Lotus Domino, Lotus Domino , 08.02.0012 , {{Yes, 47 , {{No , {{No , - , Microsoft PowerTools for Office Open XML, Open XML , 1.0 , {{Yes, 33 , {{No , {{No , - , IBM WebSphere MQ , 6.0.2.2 , {{Yes, 44 , {{No , {{No , - , Windows 10 IoT Core, IoT Core Add-ons , , {{Yes, 74 , {{Unknown , {{Unknown , - , Quest Software, Quest Management Shell for Active Directory , 1.7 , {{Yes, 95 , {{No , {{No , - , Special Operations Software Specops Command , 1.0 , {{Yes , {{No , {{Yes , - , VMware vSphere PowerCLI , 6.5 R1 , {{Yes, 500+ , {{Yes , {{Yes , - , Internet Information Services , 7.0 , {{Yes, 54 , {{Yes , {{No , - , Windows 7 Troubleshooting Center , 6.1 , {{Yes , {{No , {{Yes , - , Microsoft Deployment Toolkit , 2010 , {{Yes , {{Yes , {{Yes , - , NetApp PowerShell Toolkit , 4.2 , {{Yes, 2000+ , {{Yes , {{Yes , - , JAMS Scheduler – Job Access & Management System , 5.0 , {{Yes, 52 , {{Yes , {{Yes , - , UIAutomation , 0.8 , {{Yes, 432 , {{No , {{No , - , Dell Equallogic , 3.5 , {{Yes, 55 , {{No , {{No , - , LOGINventory , 5.8 , {{Yes , {{Yes , {{Yes , - , SePSX{{cite web , url = http://sepsx.codeplex.com , archive-url = https://archive.today/20130119175212/http://sepsx.codeplex.com/ , url-status = dead , archive-date = January 19, 2013 , title = Selenium PowerShell eXtensions , access-date = August 20, 2012 , 0.4.1 , {{Yes, 39 , {{No , {{No


See also

* Common Information Model (computing) * Comparison of command shells * Comparison of programming languages * Web-Based Enterprise Management *
Windows Script Host The Microsoft Windows Script Host (WSH) (formerly named Windows Scripting Host) is an automation technology for Microsoft Windows operating systems that provides scripting abilities comparable to batch files, but with a wider range of supported fe ...
* Windows Terminal


References

{{Reflist, 30em, refs= {{cite web , url = https://stackoverflow.com/questions/tagged/powershell , title = powershell , access-date = March 13, 2023


Further reading

*{{Cite book , last=Finke , first=Douglas , title=Windows PowerShell for Developers , isbn=978-1-4493-2270-0 , year=2012 , publisher=O'Reilly Media , ref=none *{{Cite book , last=Holmes , first=Lee , year=2006 , title=Windows PowerShell Quick Reference , isbn=0-596-52813-2 , publisher=O'Reilly Media , ref=none *{{Cite book , last=Holmes , first=Lee , year=2007 , title=Windows PowerShell Cookbook , isbn=978-0-596-52849-2 , publisher=O'Reilly Media , ref=none *{{Cite book , last1=Jones , first1=Don , last2=Hicks , first2=Jeffery , title=Windows PowerShell 2.0: TFM , isbn=978-0-9821314-2-8 , year=2010 , edition=3rd , publisher=Sapien Technologies , ref=none *{{Cite book , last=Jones , first=Don , title=Shell of an Idea: The Untold History of PowerShell, publisher=Self-published, year=2020, isbn=978-1-9536450-3-6 , ref=none *{{Cite book , last1=Kopczynski , first1=Tyson , last2=Handley , first2=Pete , first3=Marco , last3=Shaw , title=Windows PowerShell Unleashed , isbn=978-0-672-32988-3 , edition=2nd , year=2009 , publisher=Pearson Education , ref=none *{{Cite book , last1=Kumaravel , first1=Arul , first2=Jon , last2=White , first3=Michael , last3=Naixin Li , first4=Scott , last4=Happell , first5=Guohui , last5=Xie , first6=Krishna C. , last6=Vutukuri , title= Professional Windows PowerShell Programming: Snapins, Cmdlets, Hosts and Providers , isbn= 978-0-470-17393-0 , year=2008 , publisher=Wrox Press , ref=none *{{Cite book , last=Oakley , first=Andy , title=Monad (AKA PowerShell) , isbn=0-596-10009-4 , year=2005 , publisher=O'Reilly Media , ref=none *{{Cite book , last=Watt , first=Andrew , year=2007 , title=Professional Windows PowerShell , isbn=978-0-471-94693-9 , publisher=Wrox Press , ref=none *{{Cite book , last=Wilson , first=Ed , year=2013, title=Windows PowerShell 3.0 Step by Step , isbn=978-0-7356-6339-8 , publisher=Microsoft Press , ref=none *{{cite book , last=Wilson , first=Ed , year=2014, title=Windows PowerShell Best Practices , publisher=Microsoft Press , isbn=978-0-7356-6649-8 , ref=none


External links

{{Wikiversity, PowerShell * {{Official website * {{GitHub, PowerShell/PowerShell
''Windows PowerShell Survival Guide''
{{Webarchive, url=https://web.archive.org/web/20120915113215/http://social.technet.microsoft.com/wiki/contents/articles/183.windows-powershell-survival-guide-en-us.aspx , date=September 15, 2012 on Microsoft TechNet, TechNet Wiki {{Windows Components {{Windows commands {{Common Language Infrastructure {{Microsoft APIs {{Microsoft FOSS .NET programming languages Unix shells Windows command shells Dynamically typed programming languages Configuration management Free and open-source software Interpreters (computing) Microsoft free software Microsoft programming languages Object-oriented programming languages Procedural programming languages Programming languages created in 2006 Scripting languages Software using the MIT license Text-oriented programming languages Windows administration Formerly proprietary software