PowerShell Core 6
   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 Script Active Scripting (formerly known as ActiveX Scripting) is the technology used in Microsoft Windows, Windows to implement component-based scripting support. It is based on OLE Automation (part of Component Object Model, COM) and allows installation ...
engine and allows scripts to be written in compatible languages, such as
JScript JScript is Microsoft's legacy dialect of the ECMAScript standard that is used in Microsoft's Internet Explorer web browser and HTML Applications, and as a standalone Windows scripting language. JScript is implemented as an Active Scripting eng ...
and
VBScript VBScript (Microsoft Visual Basic Scripting Edition) is a deprecated programming language for scripting on Microsoft Windows using Component Object Model (COM), based on classic Visual Basic and Active Scripting. It was popular with system admi ...
. These scripts can use COM components directly, but it has relatively inaccessible documentation and gained a reputation as a system vulnerability vector after several high-profile
computer virus A computer virus is a type of malware that, when executed, replicates itself by modifying other computer programs and Code injection, inserting its own Computer language, code into those programs. If this replication succeeds, the affected areas ...
es exploited weaknesses in its security provisions. Different versions of Windows provided various special-purpose command-line interpreters (such as
netsh In computing, netsh, or network shell, is a command-line utility included in Microsoft's Windows NT line of operating systems beginning with Windows 2000. It allows local or remote configuration of network devices such as the interface. Overv ...
and WMIC) with their own command sets but they were not interoperable.
Windows Server 2003 Windows Server 2003, codenamed "Whistler Server", is the sixth major version of the Windows NT operating system produced by Microsoft and the first server version to be released under the Windows Server brand name. It is part of the Windows NT ...
further attempted to improve the command-line experience but scripting support was still unsatisfactory.


Kermit

By the late 1990s,
Intel Intel Corporation is an American multinational corporation and technology company headquartered in Santa Clara, California, and Delaware General Corporation Law, incorporated in Delaware. Intel designs, manufactures, and sells computer compo ...
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 Sun Microsystems, Inc., often known as Sun for short, was an American technology company that existed from 1982 to 2010 which developed and sold computers, computer components, software, and information technology services. Sun contributed sig ...
computers which ran
Solaris Solaris is the Latin word for sun. It may refer to: Arts and entertainment Literature, television and film * ''Solaris'' (novel), a 1961 science fiction novel by Stanisław Lem ** ''Solaris'' (1968 film), directed by Boris Nirenburg ** ''Sol ...
(a
Unix Unix (, ; trademarked as UNIX) is a family of multitasking, multi-user computer operating systems that derive from the original AT&T Unix, whose development started in 1969 at the Bell Labs research center by Ken Thompson, Dennis Ritchie, a ...
variant) on
RISC In electronics and computer science, a reduced instruction set computer (RISC) is a computer architecture designed to simplify the individual instructions given to the computer to accomplish tasks. Compared to the instructions given to a comp ...
-architecture CPUs. The ability to run Intel's many
KornShell KornShell (ksh) is a Unix shell which was developed by David Korn (computer scientist), David Korn at Bell Labs in the early 1980s and announced at USENIX Annual Technical Conference, USENIX on July 14, 1983. The initial development was base ...
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 __NOTOC__ Jeffrey Snover is a Distinguished Engineer at Google. Previously a Microsoft Technical Fellow, PowerShell Chief Architect, and the Chief Architect for Windows Server and the Azure Infrastructure and Management group which includes Azu ...
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 __NOTOC__ Jeffrey Snover is a Distinguished Engineer at Google. Previously a Microsoft Technical Fellow, PowerShell Chief Architect, and the Chief Architect for Windows Server and the Azure Infrastructure and Management group which includes Azu ...
. In a 2017 interview, Snover explains the genesis of PowerShell, saying that he had been trying to make
Unix Unix (, ; trademarked as UNIX) is a family of multitasking, multi-user computer operating systems that derive from the original AT&T Unix, whose development started in 1969 at the Bell Labs research center by Ken Thompson, Dennis Ritchie, a ...
tools available on Windows, which didn't work due to " core architectural difference 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 A text file (sometimes spelled textfile; an old alternative name is flat file) is a kind of computer file that is structured as a sequence of lines of electronic text. A text file exists stored as data within a computer file system. In ope ...
, 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
beta release The software release life cycle is the process of developing, testing, and distributing a software product (e.g., an operating system). It typically consists of several stages, such as pre-alpha, alpha, beta, and release candidate, before the fi ...
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 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 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 ''
TechNet Magazine Microsoft TechNet was a Microsoft web portal and web service for IT professionals. It included a library containing documentation and technical resources for Microsoft products, a learning center providing online training, discussion forums, an ...
'', Microsoft called proficiency with PowerShell "the single most important skill a Windows
administrator Administrator or admin may refer to: Job roles Computing and internet * Database administrator, a person who is responsible for the environmental aspects of a database * Forum administrator, one who oversees discussions on an Internet forum * N ...
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 CentOS (, from Community Enterprise Operating System; also known as CentOS Linux) is a discontinued Linux distribution that provided a free and open-source community-supported computing platform, functionally compatible with its upstream (softw ...
and
Ubuntu Ubuntu ( ) is a Linux distribution based on Debian and composed primarily of free and open-source software. Developed by the British company Canonical (company), Canonical and a community of contributors under a Meritocracy, meritocratic gover ...
. The source code was published on
GitHub GitHub () is a Proprietary software, proprietary developer platform that allows developers to create, store, manage, and share their code. It uses Git to provide distributed version control and GitHub itself provides access control, bug trackin ...
. 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.


Pash

A project named ''Pash'', a
pun A pun, also known as a paronomasia in the context of linguistics, is a form of word play that exploits multiple meanings of a term, or of similar-sounding words, for an intended humorous or rhetorical effect. These ambiguities can arise from t ...
on the widely known " 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 framework. Pash was created by Igor Moochnick, written in C# and was released under the
GNU General Public License The GNU General Public Licenses (GNU GPL or simply GPL) are a series of widely used free software licenses, or ''copyleft'' licenses, that guarantee end users the freedom to run, study, share, or modify the software. The GPL was the first ...
. Pash development stalled in 2008, was restarted on
GitHub GitHub () is a Proprietary software, proprietary developer platform that allows developers to create, store, manage, and share their code. It uses Git to provide distributed version control and GitHub itself provides access control, bug trackin ...
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 1003.2
KornShell KornShell (ksh) is a Unix shell which was developed by David Korn (computer scientist), David Korn at Bell Labs in the early 1980s and announced at USENIX Annual Technical Conference, USENIX on July 14, 1983. The initial development was base ...
. However, PowerShell's language was also influenced by
PHP PHP is a general-purpose scripting language geared towards web development. It was originally created by Danish-Canadian programmer Rasmus Lerdorf in 1993 and released in 1995. The PHP reference implementation is now produced by the PHP Group. ...
,
Perl Perl is a high-level, general-purpose, interpreted, dynamic programming language. Though Perl is not officially an acronym, there are various backronyms in use, including "Practical Extraction and Reporting Language". Perl was developed ...
, 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 In computer science, executable code, an executable file, or an executable program, sometimes simply referred to as an executable or binary, causes a computer "to perform indicated tasks according to encoded instruction (computer science), in ...
programs If a command is a standalone executable program, PowerShell launches it in a separate
process A process is a series or set of activities that interact to produce a result; it may occur once-only or be recurrent or periodic. Things called a process include: Business and management * Business process, activities that produce a specific s ...
; 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
tab completion Command-line completion (also tab completion) is a common feature of command-line interpreters, in which the program automatically fills in partially typed commands. Command line interpreters are programs that allow a user to interact with the u ...
. PowerShell enables the creation of ''
aliases A pseudonym (; ) or alias () is a fictitious name that a person assumes for a particular purpose, which differs from their original or true meaning (orthonym). This also differs from a new name that entirely or legally replaces an individual's ow ...
'' for cmdlets, which PowerShell textually translates into invocations of the original commands. PowerShell supports both named and positional
parameters A parameter (), generally, is any characteristic that can help in defining or classifying a particular system (meaning an event, project, object, situation, etc.). That is, a parameter is an element of a system that is useful, or critical, when ...
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 Extensible Markup Language (XML) is a markup language and file format for storing, transmitting, and reconstructing data. It defines a set of rules for encoding electronic document, documents in a format that is both human-readable and Machine-r ...
-based configuration files.


Cmdlets

A cmdlet is a .NET
class Class, Classes, or The Class may refer to: Common uses not otherwise categorized * Class (biology), a taxonomic rank * Class (knowledge representation), a collection of individuals or objects * Class (philosophy), an analytical concept used d ...
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 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-documented. Common verbs are provided as an
enum Telephone number mapping is a system of unifying the international telephone number system of the public switched telephone network with the Internet addressing and identification name spaces. Internationally, telephone numbers are systematicall ...
. If a cmdlet receives either pipeline input or command-line parameter input, there must be a corresponding
property Property is a system of rights that gives people legal control of valuable things, and also refers to the valuable things themselves. Depending on the nature of the property, an owner of property may have the right to consume, alter, share, re ...
in the class, with a 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 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 ...
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 .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 paths. Data stores are exposed using drive letters, and hierarchies within them, addressed as directories. PowerShell ships with providers for the file system, registry, the
certificate Certificate may refer to: * Birth certificate * Marriage certificate * Death certificate * Gift certificate * Certificate of authenticity, a document or seal certifying the authenticity of something * Certificate of deposit, or CD, a financial p ...
store, as well as the
namespace In computing, a namespace is a set of signs (''names'') that are used to identify and refer to objects of various kinds. A namespace ensures that all of a given set of objects have unique names so that they can be easily identified. Namespaces ...
s for command aliases, variables, and functions. PowerShell also includes various cmdlets for managing various
Windows Windows is a Product lining, product line of Proprietary software, proprietary graphical user interface, graphical operating systems developed and marketed by Microsoft. It is grouped into families and subfamilies that cater to particular sec ...
systems, including the file system, or using
Windows Management Instrumentation Windows Management Instrumentation (WMI) is a set of extensions to the Windows Driver Model that provides an operating system interface through which instrumented components provide information and notification. WMI is Microsoft's implementatio ...
to control
Windows components The following is a list of Microsoft Windows components. Configuration and maintenance User interface Applications and utilities Windows Server components File systems Core components Services This list is not all-inclusi ...
. 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 A pipeline is a system of Pipe (fluid conveyance), pipes for long-distance transportation of a liquid or gas, typically to a market area for consumption. The latest data from 2014 gives a total of slightly less than of pipeline in 120 countries ...
semantics Semantics is the study of linguistic Meaning (philosophy), meaning. It examines what meaning is, how words get their meaning, and how the meaning of a complex expression depends on its parts. Part of this process involves the distinction betwee ...
, similar to the 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 byte streams, are passed from one stage to the next. Using
objects Object may refer to: General meanings * Object (philosophy), a thing, being, or concept ** Object (abstract), an object which does not exist at any particular time or place ** Physical object, an identifiable collection of matter * Goal, an ai ...
and executing stages within the PowerShell runtime eliminates the need to serialize data structures, or to extract them by explicitly
parsing Parsing, syntax analysis, or syntactic analysis is a process of analyzing a String (computer science), string of Symbol (formal), symbols, either in natural language, computer languages or data structures, conforming to the rules of a formal gramm ...
text output. An object can also 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 In telecommunications and computing, backward compatibility (or backwards compatibility) is a property of an operating system, software, real-world product, or technology that allows for interoperability with an older legacy system, or with Input ...
, 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 In computer programming, a type system is a logical system comprising a set of rules that assigns a property called a ''type'' (for example, integer, floating point, string) to every '' term'' (a word, phrase, or other set of symbols). Usua ...
language for scripting which can implement complex operations using cmdlets imperatively. The language supports variables, functions, branching (
if-then-else In computer science, conditionals (that is, conditional statements, conditional expressions and conditional constructs) are programming language constructs that perform different computations or actions or return different values depending on t ...
), loops (
while ''While'' is a word in the English language that functions both as a noun and as a subordinating conjunction. Its meaning varies largely based on its intended function, position in the phrase and even the writer or speaker's regional dialect. ...
, do,
for For or FOR may refer to: English language *For, a preposition *For, a complementizer *For, a grammatical conjunction Science and technology * Fornax, a constellation * for loop, a programming language statement * Frame of reference, in physics * ...
, and
foreach In computer programming, foreach loop (or for-each loop) is a control flow statement for traversing items in a collection. is usually used in place of a standard loop statement. Unlike other loop constructs, however, loops usually maintai ...
), structured error/exception handling and closures/ 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 L-value, anything assigned to it will be written to the file. When used as an 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
arrays An array is a systematic arrangement of similar objects, usually in rows and columns. Things called an array include: {{TOC right Music * In twelve-tone and serial composition, the presentation of simultaneous twelve-tone sets such that the ...
and
associative array In computer science, an associative array, key-value store, map, symbol table, or dictionary is an abstract data type that stores a collection of (key, value) pairs, such that each possible key appears at most once in the collection. In math ...
s. 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 ( ypeParam1, ypeParam2) 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
strings String or strings may refer to: *String (structure), a long flexible structure made from threads twisted together, which is used to tie, bind, or hang other objects Arts, entertainment, and media Films * ''Strings'' (1991 film), a Canadian anim ...
, both raw and escaped. A string enclosed between single
quotation mark Quotation marks are punctuation marks used in pairs in various writing systems to identify direct speech, a quotation, or a phrase. The pair consists of an opening quotation mark and a closing quotation mark, which may or may not be the sam ...
s 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 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 signed to verify their integrity, and are subject to
Code Access Security Code Access Security (CAS), in the Microsoft .NET framework, is Microsoft's solution to prevent untrusted code from performing privileged actions. When the CLR loads an assembly it will obtain evidence for the assembly and use this to identify th ...
. The PowerShell language supports
binary prefix A binary prefix is a unit prefix that indicates a multiple of a unit of measurement by an integer power of two. The most commonly used binary prefixes are kibi (symbol Ki, meaning ), mebi (), and gibi (). They are most often used in inform ...
notation similar to the
scientific notation Scientific notation is a way of expressing numbers that are too large or too small to be conveniently written in decimal form, since to do so would require writing out an inconveniently long string of digits. It may be referred to as scientif ...
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 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 A process is a series or set of activities that interact to produce a result; it may occur once-only or be recurrent or periodic. Things called a process include: Business and management * Business process, activities that produce a specific s ...
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 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 Reflection or reflexion may refer to: Science and technology * Reflection (physics), a common wave phenomenon ** Specular reflection, mirror-like reflection of waves from a surface *** Mirror image, a reflection in a mirror or in water ** Diffuse r ...
. 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 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 XP is a major release of Microsoft's Windows NT operating system. It was released to manufacturing on August 24, 2001, and later to retail on October 25, 2001. It is a direct successor to Windows 2000 for high-end and business users a ...
,
Windows Server 2003 SP1 Windows Server 2003, codenamed "Whistler Server", is the sixth major version of the Windows NT operating system produced by Microsoft and the first server version to be released under the Windows Server brand name. It is part of the Windows NT ...
and
Windows Vista Windows Vista is a major release of the Windows NT operating system developed by Microsoft. It was the direct successor to Windows XP, released five years earlier, which was then the longest time span between successive releases of Microsoft W ...
and as an optional component of
Windows Server 2008 Windows Server 2008, codenamed "Longhorn Server" (alternatives: "Windows Vista Server" or "Windows Server Vista"), is the seventh major version of the Windows NT operating system produced by Microsoft to be released under the Windows Server b ...
.


2.0

Version 2.0 integrates with
Windows 7 Windows 7 is a major release of the Windows NT operating system developed by Microsoft. It was Software release life cycle#Release to manufacturing (RTM), released to manufacturing on July 22, 2009, and became generally available on October 22, ...
and
Windows Server 2008 R2 Windows Server 2008 R2, codenamed "Windows Server 7" or "Windows Server 2008 Release 2", is the eighth major version of the Windows NT operating system produced by Microsoft to be released under the Windows Server brand name. It was release ...
and is released for
Windows XP Windows XP is a major release of Microsoft's Windows NT operating system. It was released to manufacturing on August 24, 2001, and later to retail on October 25, 2001. It is a direct successor to Windows 2000 for high-end and business users a ...
with Service Pack 3,
Windows Server 2003 Windows Server 2003, codenamed "Whistler Server", is the sixth major version of the Windows NT operating system produced by Microsoft and the first server version to be released under the Windows Server brand name. It is part of the Windows NT ...
with Service Pack 2, and
Windows Vista Windows Vista is a major release of the Windows NT operating system developed by Microsoft. It was the direct successor to Windows XP, released five years earlier, which was then the longest time span between successive releases of Microsoft W ...
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 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 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 localized string resources to be imported into the script at runtime (''Script Internationalization''). * Script debugging: Allows
breakpoint In software development, a breakpoint is an intentional stopping or pausing place in a computer program, program, put in place for debugging purposes. It is also sometimes simply referred to as a pause. More generally, a breakpoint is a means o ...
s 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 Syntax highlighting is a feature of text editors that is used for programming language, programming, scripting language, scripting, or markup language, markup languages, such as HTML. The feature displays text, especially source code, in differe ...
, 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 Background Intelligent Transfer Service (BITS) is a component of Microsoft Windows XP and later iterations of the operating systems, which facilitates asynchronous, prioritized, and throttled transfer of files between machines using idle network ...
(BITS). * New cmdlets: Including Out-GridView, which displays tabular data in the WPF 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-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 8 is a major release of the Windows NT operating system developed by Microsoft. It was Software release life cycle#Release to manufacturing (RTM), released to manufacturing on August 1, 2012, made available for download via Microsoft ...
,
Windows Server 2012 Windows Server 2012, codenamed "Windows Server 8", is the ninth major version of the Windows NT operating system produced by Microsoft to be released under the Windows Server brand name. It is the server version of Windows based on Windows ...
,
Windows 7 Windows 7 is a major release of the Windows NT operating system developed by Microsoft. It was Software release life cycle#Release to manufacturing (RTM), released to manufacturing on July 22, 2009, and became generally available on October 22, ...
with Service Pack 1,
Windows Server 2008 Windows Server 2008, codenamed "Longhorn Server" (alternatives: "Windows Vista Server" or "Windows Server Vista"), is the seventh major version of the Windows NT operating system produced by Microsoft to be released under the Windows Server b ...
with Service Pack 1, and
Windows Server 2008 R2 Windows Server 2008 R2, codenamed "Windows Server 7" or "Windows Server 2008 Release 2", is the eighth major version of the Windows NT operating system produced by Microsoft to be released under the Windows Server brand name. It was release ...
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 The software release life cycle is the process of developing, testing, and distributing a software product (e.g., an operating system). It typically consists of several stages, such as pre-alpha, alpha, beta, and release candidate, before the fi ...
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 Task Scheduler (formerly Scheduled Tasks) is a job scheduler in Microsoft Windows that launches computer programs or scripts at pre-defined times or after specified time intervals. Microsoft introduced this component in the Microsoft Plus! for ...
infrastructure. * Session connectivity: Sessions can be disconnected and reconnected. Remote sessions have become more tolerant of temporary network failures. * Improved code writing:
Code completion Code completion is an autocompletion feature in many integrated development environments (IDEs) that speeds up the process of coding applications by fixing common mistakes and suggesting lines of code. This usually happens through popups while typ ...
(IntelliSense) and 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 8.1 is a release of the Windows NT operating system developed by Microsoft. It was released to manufacturing on August 27, 2013, and broadly released for retail sale on October 17, 2013, about a year after the retail release of its pr ...
,
Windows Server 2012 R2 Windows Server 2012 R2, codenamed "Windows Server Blue", is the tenth major version of the Windows NT operating system produced by Microsoft to be released under the Windows Server brand name. It was unveiled on June 3, 2013, at TechEd Nort ...
, Windows 7 SP1,
Windows Server 2008 R2 Windows Server 2008 R2, codenamed "Windows Server 7" or "Windows Server 2008 Release 2", is the eighth major version of the Windows NT operating system produced by Microsoft to be released under the Windows Server brand name. It was release ...
SP1 and
Windows Server 2012 Windows Server 2012, codenamed "Windows Server 8", is the ninth major version of the Windows NT operating system produced by Microsoft to be released under the Windows Server brand name. It is the server version of Windows based on Windows ...
. 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 Distributed Management Task Force (DMTF) is a 501(c)(6) nonprofit industry standards organization that creates open manageability standards spanning diverse emerging and traditional IT infrastructures including cloud, virtualization, network, s ...
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 A debugger is a computer program used to test and debug other programs (the "target" programs). Common features of debuggers include the ability to run or halt the target program using breakpoints, step through code line by line, and display ...
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 Hyper-V is a native hypervisor developed by Microsoft; it can create virtual machines on x86-64 systems running Windows. It is included in Pro and Enterprise editions of Windows (since Windows 8) as an optional feature to be manually enabled. A ...
's virtualized
network switch A network switch (also called switching hub, bridging hub, Ethernet switch, and, by the IEEE, MAC bridge) is networking hardware that connects devices on a computer network by using packet switching to receive and forward data to the destinat ...
es * 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 keyword that creates classes for
object-oriented programming Object-oriented programming (OOP) is a programming paradigm based on the concept of '' objects''. Objects can contain data (called fields, attributes or properties) and have actions they can perform (called procedures or methods and impl ...
* The new enum keyword that creates enums * OneGet cmdlets to support the
Chocolatey Chocolatey is a machine-level, command-line package manager and installer for software on Microsoft Windows. It uses the NuGet packaging infrastructure and Windows PowerShell to simplify the process of downloading and installing software. The n ...
package manager A package manager or package management system is a collection of software tools that automates the process of installing, upgrading, configuring, and removing computer programs for a computer in a consistent manner. A package manager deals wi ...
* Extending support for switch management to
layer 2 The data link layer, or layer 2, is the second layer of the seven-layer OSI model of computer networking. This layer is the protocol layer that transfers data between nodes on a network segment across the physical layer. The data link layer pr ...
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 Windows 10 Anniversary Update (also known as version 1607 and codenamed "Redstone 1") is the second major update to Windows 10 Windows 10 is a major release of Microsoft's Windows NT operating system. The successor to Windows 8.1, it wa ...
on August 2, 2016, and in
Windows Server 2016 Windows Server 2016 is the eleventh major version of the Windows NT operating system produced by Microsoft to be released under the Windows Server brand name. It was developed alongside Windows 10 and is the successor to the Windows 8.1-based ...
. 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 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 ...
, independent of Windows, free and open source. It achieved
general availability The software release life cycle is the process of developing, testing, and distributing a software product (e.g., an operating system). It typically consists of several stages, such as pre-alpha, alpha, beta, and release candidate, before the fi ...
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 UTF-8 is a character encoding standard used for electronic communication. Defined by the Unicode Standard, the name is derived from ''Unicode Transformation Format 8-bit''. Almost every webpage is transmitted as UTF-8. UTF-8 supports all 1,112,0 ...
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 Windows Server 2019 is the twelfth major version of the Windows NT operating system produced by Microsoft to be released under the Windows Server brand name. It is the second version of the server operating system based on the Windows 10 plat ...
." 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 In mathematics, a ternary operation is an ''n''- ary operation with ''n'' = 3. A ternary operation on a set ''A'' takes any given three elements of ''A'' and combines them to form a single element of ''A''. In computer science, a ternary operato ...
* The ?? operator for 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 Windows Update is a Microsoft service for the Windows 9x and Windows NT families of the Microsoft Windows operating system, which automates downloading and installing Microsoft Windows software updates over the Internet. The service delivers sof ...
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 UTF-8 is a character encoding standard used for electronic communication. Defined by the Unicode Standard, the name is derived from ''Unicode Transformation Format 8-bit''. Almost every webpage is transmitted as UTF-8. UTF-8 supports all 1,112,0 ...
encoding In communications and Data processing, information processing, code is a system of rules to convert information—such as a letter (alphabet), letter, word, sound, image, or gesture—into another form, sometimes data compression, shortened or ...
(changing from
ASCII ASCII ( ), an acronym for American Standard Code for Information Interchange, is a character encoding standard for representing a particular set of 95 (English language focused) printable character, printable and 33 control character, control c ...
-superset
Windows-1252 Windows-1252 or CP-1252 ( Windows code page 1252) is a legacy single-byte character encoding that is used by default (as the "ANSI code page") in Microsoft Windows throughout the Americas, Western Europe, Oceania, and much of Africa. Initially ...
aka
ISO-8859-1 ISO/IEC 8859-1:1998, ''Information technology—8-bit computing, 8-bit single-byte coded graphic character (computing), character sets—Part 1: Latin alphabet No. 1'', is part of the ISO/IEC 8859 series of ASCII-based standard character enc ...
, that does not support
Unicode Unicode or ''The Unicode Standard'' or TUS is a character encoding standard maintained by the Unicode Consortium designed to support the use of text in all of the world's writing systems that can be digitized. Version 16.0 defines 154,998 Char ...
). 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 In computing, the working directory of a process is a directory of a hierarchical file system, if any, dynamically associated with the process. It is sometimes called the current working directory (CWD), e.g. the BSD getcwd function, or just c ...
, - ! 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, schtasks , {{mono, at,
cron The cron command-line utility is a job scheduler on Unix-like operating systems. Users who set up and maintain software environments use cron to schedule jobs (commands or shell scripts), also known as cron jobs, to run periodically at fixed t ...
, Schedule tasks to be run at a different time , - ! scope="row" , {{mono, Select-String , {{mono, sls , {{mono, find, {{mono,
findstr In computing, is a command in the command-line interpreters ( shells) of Microsoft Windows and ReactOS. It is used to search for a specific text string in computer files. Overview The command sends the specified lines to the standard output dev ...
, {{mono,
grep grep is a command-line utility for searching plaintext datasets for lines that match a regular expression. Its name comes from the ed command g/re/p (global regular expression search and print), which has the same effect. grep was originally de ...
, Reports lines of a file that match a pattern , - ! scope="row" , {{mono, Set-Date , {{none , {{mono,
date Date or dates may refer to: * Date, the fruit of the date palm (''Phoenix dactylifera'') * Jujube, also known as red date or Chinese date, the fruit of ''Ziziphus jujuba'' Social activity *Dating, a form of courtship involving social activi ...
+ {{mono,
time Time is the continuous progression of existence that occurs in an apparently irreversible process, irreversible succession from the past, through the present, and into the future. It is a component quantity of various measurements used to sequ ...
, {{mono, date -s , Resets the date and time , - ! scope="row" , {{mono, Set-Location , {{mono, sl, {{mono, cd, {{mono, chdir , {{mono, cd, {{mono,
chdir is a shell command that changes the working directory. It is available in many shells and other applications that maintain a working directory. In some contexts, the command can perform actions other than change directory. Some environments prov ...
, {{mono, cd , Changes the working path , - ! scope="row" , {{mono, Set-Variable , {{mono, sv, {{mono, set , {{mono,
set Set, The Set, SET or SETS may refer to: Science, technology, and mathematics Mathematics *Set (mathematics), a collection of elements *Category of sets, the category whose objects and morphisms are sets and total functions, respectively Electro ...
, {{mono, env, {{mono, export, {{mono, set, {{mono, setenv , Creates or alters the contents of an
environment variable An environment variable is a user-definable value that can affect the way running processes will behave on a computer. Environment variables are part of the environment in which a process runs. For example, a running process can query the va ...
, - ! scope="row" , {{mon
Sort-Object
} , {{mono, sort , {{mon
sort
} , {{mono,
sort Sort may refer to: * Sorting, any process of arranging items in sequence or in sets ** Sorting algorithm, any algorithm for ordering a list of elements ** Mainframe sort merge, sort utility for IBM mainframe systems ** Sort (Unix), which sorts the ...
, Sorts lines of text; cmdlet also sorts objects , - ! scope="row" , {{mono, Stop-Process , {{mono, spps, {{mono, kill , {{mono,
kill Kill often refers to: *Homicide, one human killing another *cause death, to kill a living organism, to cause its death Other common uses include: *Kill (body of water), a body of water, most commonly a creek *Kill (command), a computing command *K ...
,{{efn, name="Available tlist kill" {{mono,
taskkill In computing, kill is a command (computing), command that is used in several popular operating systems to send Signal (IPC), signals to running process (computing), processes. Implementations Unix and Unix-like In Unix and Unix-like operating s ...
{{efn, name="Available tasklist taskkill" , {{mono, kill{{efn, name="UNIX kill misnomer", 1=Also used in UNIX to send a process any
signal A signal is both the process and the result of transmission of data over some media accomplished by embedding some variation. Signals are important in multiple subject fields including signal processing, information theory and biology. In ...
, the "Terminate" signal is merely the default , Stops a running process , - ! scope="row" , {{mono, Tee-Object , {{mono, tee , {{n/a , {{mono,
tee A tee is a stand used in sport to support and elevate a stationary ball prior to striking with a foot, club, or bat. Tees are used extensively in golf, tee-ball, baseball, American football, and rugby. Etymology The word tee is derived from t ...
, Pipes input to a file or variable, passing the input along the pipeline , - ! scope="row" , {{mono, Test-Connection{{efn, 1=While the external
ping Ping may refer to: Arts and entertainment Fictional characters * Ping, a domesticated Chinese duck in the illustrated book '' The Story about Ping'', first published in 1933 * Ping, a minor character in ''Seinfeld'', an NBC sitcom * Pingg, a ...
command remains available to PowerShell, Test-Connection's output is a structured
object Object may refer to: General meanings * Object (philosophy), a thing, being, or concept ** Object (abstract), an object which does not exist at any particular time or place ** Physical object, an identifiable collection of matter * Goal, an a ...
that can be programmatically inspected. , {{mono,
ping Ping may refer to: Arts and entertainment Fictional characters * Ping, a domesticated Chinese duck in the illustrated book '' The Story about Ping'', first published in 1933 * Ping, a minor character in ''Seinfeld'', an NBC sitcom * Pingg, a ...
, {{mono,
ping Ping may refer to: Arts and entertainment Fictional characters * Ping, a domesticated Chinese duck in the illustrated book '' The Story about Ping'', first published in 1933 * Ping, a minor character in ''Seinfeld'', an NBC sitcom * Pingg, a ...
, {{mono,
ping Ping may refer to: Arts and entertainment Fictional characters * Ping, a domesticated Chinese duck in the illustrated book '' The Story about Ping'', first published in 1933 * Ping, a minor character in ''Seinfeld'', an NBC sitcom * Pingg, a ...
, Sends ICMP echo requests to a remote machine , - ! scope="row" , {{mono, Write-Output , {{mono, echo, {{mono, write , {{mono,
echo In audio signal processing and acoustics, an echo is a reflection of sound that arrives at the listener with a delay after the direct sound. The delay is directly proportional to the distance of the reflecting surface from the source and the lis ...
, {{mono, echo , Writes text to
standard output Standard may refer to: Symbols * Colours, standards and guidons, kinds of military signs * Standard (emblem), a type of a large symbol or emblem used for identification Norms, conventions or requirements * Standard (metrology), an object t ...
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 , - , Exchange Server , 2007 , {{Yes, 402 , {{Yes , {{Yes , - ,
Windows Server Windows Server (formerly Windows NT Server) is a brand name for Server (computing), server-oriented releases of the Windows NT operating system (OS) that have been developed by Microsoft since 1993. The first release under this brand name i ...
,
2008 2008 was designated as: *International Year of Languages *International Year of Planet Earth *International Year of the Potato *International Year of Sanitation The Great Recession, a worldwide recession which began in 2007, continued throu ...
, {{Yes , {{Yes , {{No , - ,
Microsoft SQL Server Microsoft SQL Server is a proprietary relational database management system developed by Microsoft using Structured Query Language (SQL, often pronounced "sequel"). As a database server, it is a software product with the primary function of ...
, 2008 , {{Yes , {{Yes , {{No , - ,
Microsoft SharePoint SharePoint is a collection of enterprise content management and knowledge management tools developed by Microsoft. Launched in 2001, it was initially bundled with Windows Server as Windows SharePoint Server, then renamed to Microsoft Office S ...
, 2010 , {{Yes , {{Yes , {{No , - ,
System Center Configuration Manager Microsoft Configuration Manager (ConfigMgr) is a systems management software product developed by Microsoft for managing large groups of computers providing remote control, patch management, software distribution, operating system deployment, an ...
, 2012 R2 , {{Yes, 400+ , {{Yes , {{No , - ,
System Center Operations Manager System Center Operations Manager (SCOM) is a cross-platform data center monitoring system for operating systems and hypervisors. It uses a single interface that shows state, health, and performance information of computer systems. It also pro ...
, 2007 , {{Yes, 74 , {{Yes , {{No , - ,
System Center Virtual Machine Manager System Center Virtual Machine Manager (SCVMM) forms part of Microsoft's System Center line of virtual machine management and reporting tools, alongside previously established tools such as System Center Operations Manager and System Center Conf ...
, 2007 , {{Yes , {{Yes , {{Yes , - ,
System Center Data Protection Manager System Center Data Protection Manager (DPM) is a software product from Microsoft that provides near- continuous data protection and data recovery in a Microsoft Windows environment. It is part of the Microsoft System Center family of products a ...
, 2007 , {{Yes , {{No , {{No , - ,
Windows Compute Cluster Server Windows Server 2003, codenamed "Whistler Server", is the sixth major version of the Windows NT operating system produced by Microsoft and the first server version to be released under the Windows Server brand name. It is part of the Windows NT ...
, 2007 , {{Yes , {{Yes , {{No , - , Microsoft Transporter Suite for
Lotus Domino HCL Notes (formerly Lotus Notes then IBM Notes) is a proprietary collaborative software platform for Unix ( AIX), IBM i, Windows, Linux, and macOS, sold by HCLTech. The client application is called Notes while the server component is branded ...
, 08.02.0012 , {{Yes, 47 , {{No , {{No , - , Microsoft PowerTools for Open XML , 1.0 , {{Yes, 33 , {{No , {{No , - ,
IBM WebSphere MQ IBM MQ is a family of message-oriented middleware products that IBM launched in December 1993. It was originally called MQSeries, and was renamed ''WebSphere MQ'' in 2002 to join the suite of WebSphere products. In April 2014, it was renamed ''IBM ...
, 6.0.2.2 , {{Yes, 44 , {{No , {{No , - , IoT Core Add-ons , , {{Yes, 74 , {{Unknown , {{Unknown , - , Quest Management Shell for Active Directory , 1.7 , {{Yes, 95 , {{No , {{No , - , Special Operations Software Specops Command , 1.0 , {{Yes , {{No , {{Yes , - ,
VMware vSphere VMware vSphere (formerly VMware Infrastructure 4) is VMware's cloud computing virtualization platform. It includes vCenter Configuration Manager, as well as vCenter Application Discovery Manager, and the ability of vMotion to move more than o ...
PowerCLI , 6.5 R1 , {{Yes, 500+ , {{Yes , {{Yes , - ,
Internet Information Services Microsoft IIS (Internet Information Services, IIS, 2S) is an extensible web server created by Microsoft for use with the Windows NT family. IIS supports HTTP, HTTP/2, HTTP/3, HTTPS, FTP, FTPS, SMTP and NNTP. It has been an integral part o ...
, 7.0 , {{Yes, 54 , {{Yes , {{No , - ,
Windows 7 Windows 7 is a major release of the Windows NT operating system developed by Microsoft. It was Software release life cycle#Release to manufacturing (RTM), released to manufacturing on July 22, 2009, and became generally available on October 22, ...
Troubleshooting Center , 6.1 , {{Yes , {{No , {{Yes , - ,
Microsoft Deployment Toolkit Microsoft Deployment Toolkit (MDT; originally released as ''Business Desktop Deployment in August 2003'') is a free software package from Microsoft for automating the deployment of Windows 10, Server 2019 and older Windows Server and desktop op ...
, 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