fbpx
Wikipedia

PowerShell

PowerShell is a task automation and configuration management program from Microsoft, consisting of a command-line shell and the associated scripting language. Initially a Windows component only, known as Windows PowerShell, it was made open-source and cross-platform on August 18, 2016, with the introduction of PowerShell Core.[5] The former is built on the .NET Framework, the latter on .NET (previously .NET Core).

PowerShell
Screenshot of a PowerShell 7 session in Windows Terminal
ParadigmImperative, pipeline, object-oriented, functional and reflective
Designed byJeffrey Snover, Bruce Payette, James Truher (et al.)
DeveloperMicrosoft
First appearedNovember 14, 2006; 16 years ago (2006-11-14)
Stable release
7.3.4 / April 12, 2023; 22 days ago (2023-04-12)[1]
Preview release
v7.4.0-preview.2 / March 14, 2023; 51 days ago (2023-03-14)[2]
Typing disciplineStrong, safe, implicit and dynamic
Implementation languageC#
PlatformPowerShell: .NET
Windows PowerShell: .NET Framework
OS
LicenseMIT License[3] (but the Windows component remains proprietary)
Filename extensions
  • .ps1 (Script)
  • .ps1xml (XML Document)
  • .psc1 (Console File)
  • .psd1 (Data File)
  • .psm1 (Script Module)
  • .pssc (Session Configuration File)
  • .psrc (Role Capability File)
  • .cdxml (Cmdlet Definition XML Document)
Websitemicrosoft.com/powershell
Influenced by
Python, Ksh, Perl, C#, CL, DCL, SQL, Tcl, Tk,[4] Chef, Puppet

Since Windows 10 build 14971, PowerShell replaced Command Prompt and became the default command shell for File Explorer.[6][7]

In PowerShell, administrative tasks are generally performed via cmdlets (pronounced command-lets), which are specialized .NET classes implementing a particular operation. These work by accessing data in different data stores, like the file system or Windows Registry, which are made available to PowerShell via providers. Third-party developers can add cmdlets and providers to PowerShell.[8][9] Cmdlets may be used by scripts, which may in turn be packaged into modules. Cmdlets work in tandem with the .NET API.

PowerShell's support for .NET Remoting, WS-Management, CIM, and SSH enables administrators to perform administrative tasks on both local and remote Windows systems. PowerShell also provides a hosting API with which the PowerShell runtime can be embedded inside other applications. These applications can then use PowerShell functionality to implement certain operations, including those exposed via the graphical interface. This capability has been used by Microsoft Exchange Server 2007 to expose its management functionality as PowerShell cmdlets and providers and implement the graphical management tools as PowerShell hosts which invoke the necessary cmdlets.[8][10] Other Microsoft applications including Microsoft SQL Server 2008 also expose their management interface via PowerShell cmdlets.[11]

PowerShell includes its own extensive, console-based help (similar to man pages in Unix shells) accessible via the Get-Help cmdlet. Updated local help contents can be retrieved from the Internet via the Update-Help cmdlet. Alternatively, help from the web can be acquired on a case-by-case basis via the -online switch to Get-Help.

Background

The command-line interpreter (CLI) has been an inseparable part of most Microsoft operating systems. MS-DOS and Xenix relied almost exclusively on CLI. (MS-DOS 5 came with a complementary graphical DOS Shell.) The Windows 9x family came bundled with COMMAND.COM, the command-line environment of MS-DOS. The Windows NT and Windows CE families, however, came with a new cmd.exe that bore strong similarities to COMMAND.COM. Both environments support a few basic internal commands and a primitive scripting language (batch files), which can be used to automate various tasks. However, they cannot automate all facets of Windows graphical user interface (GUI) because command-line equivalents of operations are limited and the scripting language is elementary.

Microsoft attempted to address some of these shortcomings by introducing the Windows Script Host in 1998 with Windows 98, and its command-line based host, cscript.exe. It integrates with the Active Script engine and allows scripts to be written in compatible languages, such as JScript and VBScript, leveraging the APIs exposed by applications via the component object model (COM). However, it has its own deficiencies: its documentation is not very accessible, and it quickly gained a reputation as a system vulnerability vector after several high-profile computer viruses exploited weaknesses in its security provisions. Different versions of Windows provided various special-purpose command-line interpreters (such as netsh and WMIC) with their own command sets but they were not interoperable. Windows Server 2003 further attempted to improve the command line experience but scripting support was still unsatisfactory.[12]

Kermit

By the late 1990s, Intel had come to Microsoft asking for help in making Windows, which ran on Intel CPUs, a more appropriate platform to support the development of future Intel CPUs. At the time, Intel CPU development was accomplished on Sun Microsystems computers which ran Solaris (a Unix variant) on RISC-architecture CPUs. The ability to run Intel's many KornShell automation scripts on Windows was identified as a key capability. Internally, Microsoft began an effort to create a Windows port of Korn Shell, which was code-named Kermit.[13] Intel ultimately pivoted to a Linux-based development platform that could run on Intel CPUs, rendering the Kermit project redundant. However, with a fully funded team, Microsoft program manager Jeffrey Snover realized there was an opportunity to create a more general-purpose solution to Microsoft's problem of administrative automation.

Monad

By 2002, Microsoft had started to develop a new approach to command-line management, including a CLI called Monad (also known as Microsoft Shell 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.[14] In a 2017 interview, Snover explains the genesis of PowerShell, saying that he had been trying to make Unix tools available on Windows, which didn't work due to "core architectural difference[s] between Windows and Linux". Specifically, he noted that Linux considers everything an ASCII text file, whereas Windows considers everything an "API that returns structured data". They were fundamentally incompatible, which led him to take a different approach.[15]

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 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.[16] 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.[17] 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 for Linux 7.3.1 on Ubuntu 22.10

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.[18] In an October 2009 issue of TechNet Magazine, Microsoft called proficiency with PowerShell "the single most important skill a Windows administrator will need in the coming years".[19]

Windows 10 shipped a testing framework for PowerShell.[20]

On August 18, 2016, Microsoft announced[21] that they had made PowerShell open-source and cross-platform with support for Windows, macOS, CentOS and Ubuntu.[5] The source code was published on GitHub.[22] 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.[23] Starting with version 5.1, PowerShell Core is bundled with Windows Server 2016 Nano Server.[24][25]

Design

A key design tactic for PowerShell was to leverage the large number of APIs that already existed in Windows, Windows Management Instrumentation, .NET Framework, and other software. PowerShell cmdlets "wrap around" existing functionality. The intent with this tactic is 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.[26]

Grammar

PowerShell's developers based the core grammar of the tool on that of the POSIX 1003.2 KornShell.[27]

However, PowerShell's language was also influenced by PHP, Perl, and many other existing languages.[28]

Named Commands

Windows PowerShell can execute four kinds of named commands:[29]

  • cmdlets (.NET Framework programs designed to interact with PowerShell)
  • PowerShell scripts (files suffixed by .ps1)
  • PowerShell functions
  • Standalone executable programs

If a command is a standalone executable program, PowerShell launches it in a separate process; if it is a cmdlet, it executes in the PowerShell process. PowerShell provides an interactive command-line interface, where the commands can be entered and their output displayed. The user interface offers customizable tab completion. PowerShell enables the creation of aliases for cmdlets, which PowerShell textually translates into invocations of the original commands. PowerShell supports both named and positional parameters for commands. In executing a cmdlet, the job of binding the argument value to the parameter is done by PowerShell itself, but for external executables, arguments are parsed by the external executable independently of PowerShell interpretation.[30]

Extended Type System

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

Cmdlets

Cmdlets are specialized commands in the PowerShell environment that implement specific functions. These are the native commands in the PowerShell stack. Cmdlets follow a Verb-Noun naming pattern, such as Get-ChildItem, which makes it self-documenting code.[32] Cmdlets output their results as objects and can also receive objects as input, making them suitable for use as recipients in a pipeline. If a cmdlet outputs multiple objects, each object in the collection is passed down through the entire pipeline before the next object is processed.[32]

Cmdlets are specialized .NET classes, which the PowerShell runtime instantiates and invokes at execution time. Cmdlets derive either from Cmdlet or from PSCmdlet, the latter being used when the cmdlet needs to interact with the PowerShell runtime.[32] These base classes specify certain methods – BeginProcessing(), ProcessRecord() and EndProcessing() – which the cmdlet's implementation overrides to provide the functionality. Whenever a cmdlet runs, PowerShell invokes these methods in sequence, with ProcessRecord() being called if it receives pipeline input.[33] If a collection of objects is piped, the method is invoked for each object in the collection. The class implementing the cmdlet must have one .NET attributeCmdletAttribute – which specifies the verb and the noun that make up the name of the cmdlet. Common verbs are provided as an enum.[34][35]

If a cmdlet receives either pipeline input or command-line parameter input, there must be a corresponding property 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[36] 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.[37]

The implementation of these cmdlet classes can refer to any .NET API and may be 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 resultant objects to the pipeline. Cmdlets can use .NET data access APIs directly or use the PowerShell infrastructure of PowerShell Providers, which make data stores addressable using unique paths. Data stores are exposed using drive letters, and hierarchies within them, addressed as directories. Windows PowerShell ships with providers for the file system, registry, the certificate store, as well as the namespaces for command aliases, variables, and functions.[38] Windows PowerShell also includes various cmdlets for managing various Windows systems, including the file system, or using Windows Management Instrumentation to control Windows components. Other applications can register cmdlets with PowerShell, thus allowing it to manage them, and, if they enclose any datastore (such as a database), they can add specific providers as well.[citation needed]

The number of cmdlets included in the base PowerShell install has generally increased with each version:

Version Cmdlets
Windows PowerShell 1.0 129[39]
Windows PowerShell 2.0 632[40]
Windows PowerShell 3.0 about 1,000[41]
Windows PowerShell 4.0 ?
Windows PowerShell 5.0 about 1,300[42]
Windows PowerShell 5.1 1586[citation needed]
PowerShell Core 6.0 ?
PowerShell Core 6.1 ?
PowerShell Core 6.2 ?
PowerShell 7.0 1507[citation needed]
PowerShell 7.1 ?
PowerShell 7.2 ?

Cmdlets can be added into the shell through snap-ins (deprecated in v2) and modules; users are not limited to the cmdlets included in the base PowerShell installation.

Pipeline

PowerShell implements the concept of a pipeline, which enables piping the output of one cmdlet to another cmdlet as input. For example, the output of the Get-Process cmdlet could be piped to the Where-Object to filter any process that has less than 1 MB of paged memory, and then to the Sort-Object cmdlet (e.g., to sort the objects by handle count), and then finally to the Select-Object cmdlet to select just the first ten processes based on handle count.[citation needed]

As with Unix pipelines, PowerShell pipelines can construct complex commands, using the | 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. Additionally, structured .NET objects, rather than byte streams, are passed from one stage to the next. Using objects and executing stages within the PowerShell runtime eliminates the need to serialize data structures, or to extract them by explicitly parsing text output.[43] An object can also encapsulate certain functions that work on the contained data, which become available to the recipient command for use.[44][45] 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.[46][47]

Because all PowerShell objects are .NET objects, they share a .ToString() method, which retrieves the text representation of the data in an object. In addition, PowerShell allows formatting definitions to be specified, so the text representation of objects can be customized by choosing which data elements to display, and in what manner. However, in order to maintain backward compatibility, if an external executable is used in a pipeline, it receives a text stream representing the object, instead of directly integrating with the PowerShell type system.[48][49][50]

Scripting

Windows PowerShell includes a dynamically typed scripting language which can implement complex operations using cmdlets imperatively. The scripting language supports variables, functions, branching (if-then-else), loops (while, do, for, and foreach), structured error/exception handling and closures/lambda expressions,[51] 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 ${C:\foo.txt}) 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.[citation needed]

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.[52] PowerShell also provides arrays and associative arrays. The PowerShell scripting language also evaluates arithmetic expressions entered on the command line immediately, and it parses common abbreviations, such as GB, MB, and KB.[53][54]

Using the function keyword, PowerShell provides for the creation of functions. A simple function has the following general look:[55]

function name ([Type]$Param1, [Type]$Param2) { # Instructions } 

However, PowerShell allows for advanced functions that support named parameters, positional parameters, switch parameters and dynamic parameters.[55]

function Verb-Noun {  param (  # Definition of static parameters  )  dynamicparam {  # Definition of dynamic parameters  }  begin {  # Set of instruction to run at the start of the pipeline  }  process {  # Main instruction sets, ran for each item in the pipeline  }  end {  # Set of instruction to run at the end of the pipeline  } } 

The defined function is invoked in either of the following forms:[55]

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.[56] 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.[56]

PowerShell accepts strings, both raw and escaped. A string enclosed between single quotation marks is a raw string while a string enclosed between double quotation marks is an escaped string. PowerShell treats straight and curly quotes as equivalent.[57]

The following list of special characters is supported by PowerShell:[58]

PowerShell special characters
Sequence Meaning
`0 Null
`a Alert
`b Backspace
`e Escape (since PowerShell 6)
`f Form feed
`n Newline
`r Carriage return
`t Horizontal tab
`u{x} Unicode escape sequence (since PowerShell 6)
`v Vertical tab
--% Treat any character from this point forward literally

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.[59]

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.[60] 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.[61]

The PowerShell scripting language supports binary prefix notation similar to the scientific notation supported by many programming languages in the C-family.[62]

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. Via the APIs, the application can instantiate a runspace (one instantiation of the PowerShell runtime), which runs in the application's process and is exposed as a Runspace object.[8] The state of the runspace is encased in a SessionState object. When the runspace is created, the Windows 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.[citation needed]

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.[8] When a pipeline is created, Windows 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.[8] 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.[citation needed]

Microsoft Exchange Server 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.[citation needed]

Desired State Configuration

DSC allows for declaratively specifying how a software environment should be configured.[63]

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

Initially using the code name "Monad", PowerShell was first shown publicly at the Professional Developers Conference in October 2003 in Los Angeles. All major releases are still supported, and each major release has featured backwards compatibility with preceding versions.

Windows PowerShell 1.0

 
Windows PowerShell 1.0 session using the Windows Console

PowerShell 1.0 was released in November 2006 for Windows XP SP2, Windows Server 2003 SP1 and Windows Vista.[64] It is an optional component of Windows Server 2008.

Windows PowerShell 2.0

 
Windows PowerShell ISE v2.0 on Windows 7, an integrated development environment for PowerShell scripts

PowerShell 2.0 is integrated with Windows 7 and Windows Server 2008 R2[65] and is released for Windows XP with Service Pack 3, Windows Server 2003 with Service Pack 2, and Windows Vista with Service Pack 1.[66][67]

PowerShell v2 includes changes to the scripting language and hosting API, in addition to including more than 240 new cmdlets.[68][69]

New features of PowerShell 2.0 include:[70][71][72]

  • PowerShell remoting: Using WS-Management, PowerShell 2.0 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. PowerShell 2.0 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: These are cmdlets written using the PowerShell scripting language. Initially called "script cmdlets", this feature was later renamed "advanced functions".[73]
  • SteppablePipelines: This allows the user to control when the BeginProcessing(), ProcessRecord() and EndProcessing() functions of a cmdlet are called.
  • Modules: This allows script developers and administrators to organize and partition PowerShell 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 PowerShell scripting 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: It allows breakpoints to be set in a PowerShell 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: This feature allows listening, forwarding, and acting on management and system events. Eventing allows PowerShell hosts to be notified about state changes to their managed entities. It also enables PowerShell scripts to subscribe to ObjectEvents, PSEvents, and WmiEvents and process them synchronously and asynchronously.
  • Windows PowerShell Integrated Scripting Environment (ISE): PowerShell 2.0 includes a GUI-based PowerShell host that provides integrated debugger, syntax highlighting, tab completion and up to 8 PowerShell Unicode-enabled consoles (Runspaces) in a tabbed UI, as well as the ability to run only the selected parts in a script.
  • Network file transfer: Native support for prioritized, throttled, and asynchronous transfer of files between machines using the Background Intelligent Transfer Service (BITS).[74]
  • 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: PowerShell Here-Strings have been improved and can now nest.[75]
  • Block comments: PowerShell 2.0 supports block comments using <# and #> as delimiters.[76]
  • New APIs: The new APIs range from handing more control over the PowerShell 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 managed by PowerShell

Windows PowerShell 3.0

PowerShell 3.0 is integrated with Windows 8 and with Windows Server 2012. Microsoft has also made PowerShell 3.0 available for Windows 7 with Service Pack 1, for Windows Server 2008 with Service Pack 1, and for Windows Server 2008 R2 with Service Pack 1.[77][78]

PowerShell 3.0 is part of a larger package, Windows Management Framework 3.0 (WMF3), which also contains the WinRM service to support remoting.[78] Microsoft made several Community Technology Preview releases of WMF3. An early community technology preview 2 (CTP 2) version of Windows Management Framework 3.0 was released on December 2, 2011.[79] Windows Management Framework 3.0 was released for general availability in December 2012[80] and is included with Windows 8 and Windows Server 2012 by default.[81]

New features in PowerShell 3.0 include:[78][82]: 33–34 

  • Scheduled jobs: Jobs can be scheduled to run on a preset time and date using the Windows Task Scheduler infrastructure.
  • Session connectivity: Sessions can be disconnected and reconnected. Remote sessions have become more tolerant of temporary network failures.
  • Improved code writing: Code completion (IntelliSense) and snippets are added. PowerShell ISE allows users to use dialog boxes to fill in parameters for PowerShell 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.[further explanation needed]

Windows PowerShell 4.0

PowerShell 4.0 is integrated with Windows 8.1 and with Windows Server 2012 R2. Microsoft has also made PowerShell 4.0 available for Windows 7 SP1, Windows Server 2008 R2 SP1 and Windows Server 2012.[83]

New features in PowerShell 4.0 include:

  • Desired State Configuration:[84][85][86] Declarative language extensions and tools that enable the deployment and management of configuration data for systems using the DMTF management standards and WS-Management Protocol
  • New default execution policy: On Windows Servers, the default execution policy is now RemoteSigned.
  • Save-Help: Help can now be saved for modules that are installed on remote computers.
  • Enhanced debugging: The debugger now supports debugging workflows, remote script execution and preserving debugging sessions across PowerShell session reconnections.
  • -PipelineVariable switch: A new ubiquitous parameter to expose the current pipeline object as a variable for programming purposes
  • Network diagnostics to manage physical and Hyper-V's virtualized network switches
  • Where and ForEach method syntax provides an alternate method of filtering and iterating over objects.

Windows PowerShell 5.0

 
PowerShell 5.0 icon

Windows Management Framework (WMF) 5.0 RTM which includes PowerShell 5.0 was re-released to web on February 24, 2016, following an initial release with a severe bug.[87]

Key features included:

  • The new class keyword that creates classes for object-oriented programming
  • The new enum keyword that creates enums
  • OneGet cmdlets to support the Chocolatey package manager[88]
  • Extending support for switch management to layer 2 network switches.[89]
  • Debugging for PowerShell background jobs and instances of PowerShell 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 PowerShell classes

Windows PowerShell 5.1

It was released along with the Windows 10 Anniversary Update[90] on August 2, 2016, and in Windows Server 2016.[91] 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.[92] A preview for PowerShell 5.1 was released for Windows 7, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, and Windows Server 2012 R2 on July 16, 2016,[93] and was released on January 19, 2017.[94]

PowerShell 5.1 is the first version to come in two editions of "Desktop" and "Core". The "Desktop" edition is the continuation of the traditional Windows PowerShell that runs on the .NET Framework stack. 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.[25] This was the final version of PowerShell made exclusively for Windows.

PowerShell Core 6

PowerShell Core 6.0 was first announced on August 18, 2016, when Microsoft unveiled PowerShell Core and its decision to make the product cross-platform, independent of Windows, free and open source.[5] It achieved general availability on January 10, 2018, for Windows, macOS and Linux.[95] 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.[96]

The most significant change in this version of PowerShell is the expansion to the other platforms. For Windows administrators, this version of PowerShell did not include any major new features. In an interview with the community on January 11, 2018, the PowerShell team was asked to list the top 10 most exciting things that would happen for a Windows IT professional who would migrate from Windows PowerShell 5.1 to PowerShell Core 6.0; in response, Angel Calvo of Microsoft could only name two: cross-platform and open-source.[97]

6.1

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

6.2

PowerShell Core 6.2 is focused primarily on performance improvements, bug fixes, and smaller cmdlet and language enhancements that improved developer productivity.[101]

PowerShell 7

PowerShell 7 is the replacement for PowerShell Core 6.x products as well as Windows PowerShell 5.1, which is the last supported Windows PowerShell version.[102][100] The focus in development was to make PowerShell 7 a viable replacement for Windows PowerShell 5.1, i.e. to have near parity with Windows PowerShell in terms of compatibility with modules that ship with Windows.[103]

New features in PowerShell 7 include:[104]

  • The -Parallel switch for the ForEach-Object cmdlet to help handle parallel processing
  • Near parity with Windows PowerShell in terms of compatibility with built-in Windows modules
  • A new error view
  • The Get-Error cmdlet
  • Pipeline chaining operators (&& and ||) that allow conditional execution of the next cmdlet in the pipeline
  • The ?: operator for ternary operation
  • The ?? operator for null coalescing
  • 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

PowerShell 7.2

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

PowerShell 7.3

This version includes some general Cmdlet updates and fixes, testing for framework dependent package in release pipeline as well as build and packaging improvements.[106]

PowerShell 7.4

Comparison of cmdlets with similar commands

The following table contains a selection of the cmdlets that ship with PowerShell, noting similar commands in other well-known command-line interpreters. Many of these similar commands come out-of-the-box defined as aliases within PowerShell, making it easy for people familiar with other common shells to start working.

Comparison of PowerShell cmdlets with internal and external commands of other command-line interpreters
PowerShell (Cmdlet) PowerShell (Alias) Windows Command Prompt Unix shell Description
Get-ChildItem gci, dir, ls[a] dir ls Lists all files and folders in the current or given folder
Test-Connection[b] ping ping ping Sends ICMP echo requests to the specified machine from the current machine, or instructs another machine to do so
Get-Content gc, type, cat type cat Gets the content of a file
Get-Command gcm help, where type, which, compgen Lists available commands and gets command path
Get-Help help, man[a] help apropos, man Prints a command's documentation on the console
Clear-Host cls, clear cls clear Clears the screen[c]
Copy-Item cpi, copy, cp copy, xcopy, robocopy cp Copies files and folders to another location
Move-Item mi, move, mv move mv Moves files and folders to a new location
Remove-Item ri, del, erase, rmdir, rd, rm del, erase, rmdir, rd rm, rmdir Deletes files or folders
Rename-Item rni, ren, mv ren, rename mv Renames a single file, folder, hard link or symbolic link
Get-Location gl, cd, pwd cd pwd Displays the working path (current folder)
Pop-Location popd popd popd Changes the working path to the location most recently pushed onto the stack
Push-Location pushd pushd pushd Stores the working path onto the stack
Set-Location sl, cd, chdir cd, chdir cd Changes the working path
Tee-Object tee tee Pipes input to a file or variable, passing the input along the pipeline
Write-Output echo, write echo echo Prints strings or other objects to the standard output
Get-Process gps, ps tlist,[d] tasklist[e] ps Lists all running processes
Stop-Process spps, kill kill,[d] taskkill[e] kill[f] Stops a running process
Select-String sls find, findstr grep Prints lines matching a pattern
Set-Variable sv, set set env, export, set, setenv Creates or alters the contents of an environment variable
Invoke-WebRequest iwr, curl, wget[g] curl[108] wget, curl Gets contents from a web page on the Internet

Notes

  1. ^ a b ls and man aliases are absent in the Linux version of PowerShell Core.
  2. ^ While the external ping command remains available to PowerShell, Test-Connection's output is a structured object that can be programmatically inspected.[107]
  3. ^ Clear-Host is implemented as a predefined PowerShell function.
  4. ^ a b Available in Windows NT 4, Windows 98 Resource Kit, Windows 2000 Support Tools
  5. ^ a b Introduced in Windows XP Professional Edition
  6. ^ Also used in UNIX to send a process any signal, the "Terminate" signal is merely the default
  7. ^ curl and wget aliases are absent from PowerShell Core, so as to not interfere with invoking similarly named native commands.

Filename extensions

Extension Description
.ps1 Script file[109]
.psd1 Module's manifest file; usually comes with a script module or binary module[110]
.psm1 Script module file[111]
.dll DLL-compliant[a] binary module file[112]
.ps1xml Format and type definitions file[50][113]
.xml XML-compliant[b] serialized data file[114]
.psc1 Console file[115]
.pssc Session configuration file[116]
.psrc Role Capability file[117]
  1. ^ Dynamic-link library (DLL) is not a PowerShell-only format. It is a generic format for storing compiled .NET assembly's code.
  2. ^ XML is not a PowerShell-only format. It is a popular information interchange format.

Application support

Application Version Cmdlets Provider Management GUI
Exchange Server 2007 402 Yes Yes
Windows Server 2008 Yes Yes No
Microsoft SQL Server 2008 Yes Yes No
Microsoft SharePoint 2010 Yes Yes No
System Center Configuration Manager 2012 R2 400+ Yes No
System Center Operations Manager 2007 74 Yes No
System Center Virtual Machine Manager 2007 Yes Yes Yes
System Center Data Protection Manager 2007 Yes No No
Windows Compute Cluster Server 2007 Yes Yes No
Microsoft Transporter Suite for Lotus Domino[118] 08.02.0012 47 No No
Microsoft PowerTools for Open XML[119] 1.0 33 No No
IBM WebSphere MQ[120] 6.0.2.2 44 No No
IoT Core Add-ons[121] 74 Un­known Un­known
Quest Management Shell for Active Directory[122] 1.7 95 No No
Special Operations Software Specops Command[123] 1.0 Yes No Yes
VMware vSphere PowerCLI[124] 6.5 R1 500+ Yes Yes
Internet Information Services[125] 7.0 54 Yes No
Windows 7 Troubleshooting Center[126] 6.1 Yes No Yes
Microsoft Deployment Toolkit[127] 2010 Yes Yes Yes
NetApp PowerShell Toolkit[128][129] 4.2 2000+ Yes Yes
JAMS Scheduler – Job Access & Management System[130] 5.0 52 Yes Yes
UIAutomation[131] 0.8 432 No No
Dell Equallogic[132] 3.5 55 No No
LOGINventory[133] 5.8 Yes Yes Yes
SePSX[134] 0.4.1 39 No No

Alternative implementation

A project named Pash, a pun on the widely known "bash" Unix shell, has been an open-source and cross-platform reimplementation of PowerShell via the Mono framework.[135] Pash was created by Igor Moochnick, written in C# and was released under the GNU General Public License. Pash development stalled in 2008, was restarted on GitHub in 2012,[136] and finally ceased in 2016 when PowerShell was officially made open-source and cross-platform.[137]

See also

References

  1. ^ "v7.3.4 Release of PowerShell". PowerShell/PowerShell repo. Microsoft. Retrieved April 13, 2023 – via GitHub.com.
  2. ^ "v7.4.0-preview.2 Release of PowerShell". PowerShell/PowerShell repo. Microsoft. Retrieved April 13, 2023 – via GitHub.com.
  3. ^ "PowerShell for every system!". June 12, 2017 – via GitHub.com.
  4. ^ Snover, Jeffrey (May 25, 2008). "PowerShell and WPF: WTF". Windows PowerShell Blog. Microsoft.
  5. ^ a b c Bright, Peter (August 18, 2016). "PowerShell is Microsoft's latest open source release, coming to Linux, OS X". Ars Technica. Condé Nast. from the original on April 9, 2020. Retrieved May 12, 2020.
  6. ^ "Announcing Windows 10 Insider Preview Build 14971 for PC".
  7. ^ "PowerShell is replacing Command Prompt".
  8. ^ a b c d e "powershell". Retrieved March 13, 2023.
  9. ^ Truher, Jim (December 2007). . MSDN Magazine. Microsoft. Archived from the original on October 6, 2008.
  10. ^ Lowe, Scott (January 4, 2007). "Exchange 2007: Get used to the command line". TechRepublic. CBS Interactive. from the original on November 16, 2018. Retrieved May 12, 2020.
  11. ^ Snover, Jeffrey (November 13, 2007). . Windows PowerShell Blog (blog posting). Microsoft. Archived from the original on November 15, 2007. Retrieved November 13, 2007.
  12. ^ Dragan, Richard V. (April 23, 2003). "Windows Server 2003 Delivers Improvements All Around". PCMag.com. Ziff Davis. A standout feature here is that virtually all admin utilities now work from the command line (and most are available through telnet).
  13. ^ Jones, Don (2020). Shell of an Idea: The Untold History of PowerShell. p. 25. ISBN 978-1-9536450-3-6.
  14. ^ Jeffrey P. Snover (August 8, 2002). "Monad Manifesto" (PDF). Windows PowerShell Blog. Microsoft. Retrieved April 2, 2021.
  15. ^ Biggar and Harbaugh (September 14, 2017). "The Man Behind Windows PowerShell". To Be Continuous (Podcast). Heavybit. Retrieved September 14, 2017.
  16. ^ "Windows PowerShell (Monad) Has Arrived". Windows PowerShell Blog. Microsoft. April 25, 2006.
  17. ^ Snover, Jeffrey (November 15, 2006). "Windows PowerShell & Windows Vista". Windows PowerShell Blog (blog posting). Microsoft.
  18. ^ . Support. Microsoft. September 30, 2013. Archived from the original on October 13, 2013.
  19. ^ Posey, Brien (October 6, 2009). "10 reasons why you should learn to use PowerShell". TechRepublic. Retrieved April 2, 2021.
  20. ^ "What is Pester and Why Should I Care?". December 14, 2015.
  21. ^ Snover, Jeffrey (August 18, 2016). "PowerShell is open sourced and is available on Linux". Microsoft Azure Blog. Microsoft.
  22. ^ "PowerShell/PowerShell". GitHub. Retrieved August 18, 2016.
  23. ^ Hansen, Kenneth; Calvo, Angel (August 18, 2016). "PowerShell on Linux and Open Source!". Windows PowerShell Blog. Microsoft.
  24. ^ Foley, Mary Jo (August 18, 2016). "Microsoft open sources PowerShell; brings it to Linux and Mac OS X". ZDNet. CBS Interactive.
  25. ^ a b "PowerShell on Nano Server". TechNet. Microsoft. October 20, 2016.
  26. ^ Jones, Don (2020). Shell of an Idea: The Untold History of PowerShell. p. 45. ISBN 978-1-9536450-3-6.
  27. ^ Payette, Bruce (2007). Windows PowerShell in Action. Manning Pubs Co Series. Manning. p. 27. ISBN 9781932394900. Retrieved July 22, 2016. The core PowerShell language is based on the POSIX 1003.2 grammar for the Korn shell.
  28. ^ Jones, Don (2020). Shell of an Idea: The Untold History of PowerShell. p. 109. ISBN 978-1-9536450-3-6.
  29. ^ "about_Command_Precedence". TechNet. Microsoft. May 8, 2014.
  30. ^ Wheeler, Sean (September 7, 2021). "about Parsing - PowerShell". Microsoft Docs. Retrieved December 5, 2021.{{cite web}}: CS1 maint: url-status (link)
  31. ^ "Windows PowerShell Extended Type System". Retrieved November 28, 2007.
  32. ^ a b c "Windows PowerShell Cmdlets". Retrieved November 28, 2007.
  33. ^ "Creating Your First Cmdlet". Retrieved November 28, 2007.
  34. ^ "Get-Verb". TechNet. Microsoft. May 8, 2014.
  35. ^ "Cmdlet Overview". MSDN. Microsoft. May 8, 2014.
  36. ^ "Adding parameters That Process Command Line Input". Retrieved November 28, 2007.
  37. ^ "Adding parameters That Process Pipeline Input". Retrieved November 28, 2007.
  38. ^ "Windows PowerShell Providers". Retrieved October 14, 2010.
  39. ^ Yoshizawa, Tomoaki; Ramos, Durval (September 29, 2012). "PowerShell 1.0 Cmdlets". TechNet Articles. Microsoft.
  40. ^ Yoshizawa, Tomoaki (July 10, 2012). "PowerShell 2.0 Cmdlets". TechNet Articles. Microsoft.
  41. ^ Wilson, Ed (2013). "1: Overview of Windows PowerShell 3.0". Windows Powershell 3.0 Step by Step. Sebastopol, California: Microsoft Press. ISBN 978-0-7356-7000-6. OCLC 829236530. Windows PowerShell 3.0 comes with about 1,000 cmdlets on Windows 8
  42. ^ Wilson, Ed (2015). "1: Overview of Windows PowerShell 5.0". Windows PowerShell Step by Step (Third ed.). Redmond, Washington: Microsoft Press. ISBN 978-1-5093-0043-3. OCLC 927112976. Windows PowerShell 5.0 comes with about 1,300 cmdlets on Windows 10
  43. ^ "Windows PowerShell Owner's Manual: Piping and the Pipeline in Windows PowerShell". TechNet. Microsoft. Retrieved September 27, 2011.
  44. ^ Jones, Don (2008). "Windows PowerShell – Rethinking the Pipeline". Microsoft TechNet. Microsoft. Retrieved November 28, 2007.
  45. ^ . Archived from the original on August 19, 2007. Retrieved November 28, 2007.
  46. ^ "How PowerShell Formatting and Outputting REALLY works". Retrieved November 28, 2007.
  47. ^ "More – How does PowerShell formatting really work?". Retrieved November 28, 2007.
  48. ^ "about_Pipelines". TechNet. Microsoft. May 8, 2014.
  49. ^ "about_Objects". TechNet. Microsoft. May 8, 2014.
  50. ^ a b "about_Format.ps1xml". TechNet. Microsoft. May 8, 2014.
  51. ^ "Anonymous Functions and Code Blocks in PowerShell". Retrieved January 21, 2012.
  52. ^ "Introduction to Windows PowerShell's Variables". Retrieved November 28, 2007.
  53. ^ "Byte Conversion". Windows PowerShell Tip of the Week. Retrieved November 15, 2013.
  54. ^ Ravikanth (May 20, 2013). "Converting to size units (KB, MB, GB, TB, and PB) without using PowerShell multipliers". PowerShell Magazine.
  55. ^ a b c "about_Functions". Microsoft TechNet. Microsoft. October 17, 2013. Retrieved November 15, 2013.
  56. ^ a b "Lightweight Testing with Windows PowerShell". Retrieved November 28, 2007.
  57. ^ Angelopoulos, Alex; Karen, Bemowski (December 4, 2007). "PowerShell Got Smart About Smart Quotes". Windows IT Pro. Penton Media. Retrieved November 15, 2013.
  58. ^ "About Special Characters". Powershell / Scripting. Microsoft. June 8, 2017. Retrieved June 20, 2019.
  59. ^ "Trap [Exception] { "In PowerShell" }". Retrieved November 28, 2007.
  60. ^ "Running Windows PowerShell Scripts". Microsoft. Retrieved November 28, 2007.
  61. ^ "about_Signing". Microsoft TechNet. Microsoft. October 17, 2013. Retrieved November 15, 2013.
  62. ^ Lee Holmes (September 2006). Windows PowerShell Quick Reference. O'Reilly Media.
  63. ^ eslesar. "Windows PowerShell Desired State Configuration Overview". msdn.microsoft.com.
  64. ^ Chung, Leonard; Snover, Jeffrey; Kumaravel, Arul (November 14, 2006). "It's a Wrap! Windows PowerShell 1.0 Released!". Windows PowerShell Blog. Microsoft.
  65. ^ "PowerShell will be installed by default on Windows Server 08 R2 (WS08R2) and Windows 7 (W7)!". Windows PowerShell Blog. Microsoft. October 28, 2008. Retrieved September 27, 2011.
  66. ^ "Windows Management Framework is here!". October 27, 2009. Retrieved October 30, 2009.
  67. ^ "Microsoft Support Knowledge Base: Windows Management Framework (Windows PowerShell 2.0, WinRM 2.0, and BITS 4.0)". Support.microsoft.com. September 23, 2011. Retrieved September 27, 2011.
  68. ^ "574 Reasons Why We Are So Proud and Optimistic About W7 and WS08R2". Windows PowerShell Blog. Microsoft. October 29, 2008. Retrieved September 27, 2011.
  69. ^ Snover, Jeffrey (2008). . Archived from the original on October 13, 2008. Retrieved July 19, 2015.
  70. ^ "What's New in CTP of PowerShell 2.0". Retrieved November 28, 2007.
  71. ^ . Microsoft. Archived from the original on May 6, 2008. Retrieved May 5, 2008.
  72. ^ . Archived from the original on September 17, 2010. Retrieved June 26, 2010.
  73. ^ Jones, Don (May 2010). "Windows PowerShell: Writing Cmdlets in Script". TechNet Magazine. Microsoft.
  74. ^ "GoGrid Snap-in – Managing Cloud Services with PowerShell". Windows PowerShell Blog. Microsoft. October 14, 2008. Retrieved September 27, 2011.
  75. ^ "Emit-XML". Windows PowerShell Blog. Microsoft. October 17, 2008. Retrieved September 27, 2011.
  76. ^ "Block Comments in V2". Windows PowerShell Blog. Microsoft. June 14, 2008. Retrieved September 27, 2011.
  77. ^ Lee, Thomas (August 13, 2012). "PowerShell Version 3 is RTM!". Under The Stairs. Retrieved August 13, 2012.
  78. ^ a b c "Windows Management Framework 3.0". Download Center. Microsoft. September 4, 2012. Retrieved November 8, 2012.
  79. ^ "Windows Management Framework 3.0 Community Technology Preview (CTP) #2 Available for Download". Windows PowerShell Blog. Microsoft. December 2, 2011.
  80. ^ "Windows Management Framework 3.0". Download Center. Microsoft. December 3, 2012.
  81. ^ Jofre, JuanPablo (December 14, 2016). "Windows PowerShell System Requirements". Microsoft Developer Network. Microsoft. Retrieved April 20, 2017.
  82. ^ Honeycutt, Jerry (2012). Woolley, Valerie (ed.). Introducing Windows 8: An Overview for IT Professionals. Redmond, WA: Microsoft Press. ISBN 978-0-7356-7050-1.
  83. ^ "Windows Management Framework 4.0 is now available". Microsoft. October 24, 2013. Retrieved November 4, 2013.
  84. ^ Levy, Shay (June 25, 2013). "New Features in Windows PowerShell 4.0". PowerShell Magazine. Retrieved June 26, 2013.
  85. ^ . Channel 9. Microsoft. June 3, 2013. Archived from the original on December 26, 2013. Retrieved June 26, 2013.
  86. ^ Hall, Adrian (June 7, 2013). "Thoughts from Microsoft TechEd North America". Blogs: Tips & Tricks. Splunk. Retrieved June 26, 2013.
  87. ^ "Windows Management Framework (WMF) 5.0 RTM packages has been republished". Windows PowerShell Blog. Microsoft. February 24, 2016.
  88. ^ "Q and A". GitHub. Retrieved April 21, 2015.
  89. ^ Snover, Jeffrey (April 3, 2014). . blogs.technet.com. Microsoft. Archived from the original on June 30, 2014. Retrieved April 21, 2015.
  90. ^ says, Jaap Brasser (August 2, 2016). "#PSTip New PowerShell Commands in Windows 10 Anniversary Update".
  91. ^ "What's New In Windows Server 2016 Standard Edition Part 9 – Management And Automation".
  92. ^ "Microsoft.PowerShell.LocalAccounts Module". technet.microsoft.com.
  93. ^ "Announcing Windows Management Framework (WMF) 5.1 Preview". July 16, 2016.
  94. ^ "WMF 5.1". Microsoft Download Center.
  95. ^ Aiello, Joey (January 11, 2018). "PowerShell Core 6.0: Generally Available (GA) and Supported!". PowerShell Team Blog. Microsoft. Archived from the original on June 11, 2018. Retrieved June 11, 2018.
  96. ^ Aiello, Joey; Wheeler, Sean (January 10, 2018). "PowerShell Core Support Lifecycle". Microsoft Docs. Microsoft.
  97. ^ Calvo, Angel (January 11, 2018). "Top 10 most exciting reasons to migrate". PowerShell AMA. Microsoft.
  98. ^ Aiello, Joey (September 13, 2018). "Announcing PowerShell Core 6.1". devblogs.microsoft.com. Microsoft. Retrieved June 1, 2019.
  99. ^ "PowerShell/PowerShell". GitHub. Retrieved June 22, 2020.
  100. ^ a b c Lee, Steve (April 5, 2019). "The Next Release of PowerShell – PowerShell 7". Microsoft. Retrieved June 1, 2019.
  101. ^ Lee, Steve (March 28, 2019). "General Availability of PowerShell Core 6.2". devblogs.microsoft.com. Microsoft. Retrieved June 1, 2019.
  102. ^ Mackie, Kurt (May 30, 2019). "Microsoft Releases PowerShell 7 Preview". 1105 Media Inc. Retrieved June 1, 2019.
  103. ^ Lee, Steve (May 30, 2019). "PowerShell 7 Road Map". devblogs.microsoft.com. Microsoft. Retrieved August 12, 2020.
  104. ^ "PowerShell 7 Preview 5 | PowerShell". October 23, 2019. from the original on February 15, 2020. Retrieved March 5, 2020.
  105. ^ "PowerShell 7.2 is the new version of Microsoft's next-generation shell". itsfoss.net. November 12, 2021.
  106. ^ "Release v7.3.0 Release of PowerShell · PowerShell/PowerShell". GitHub. from the original on November 9, 2022. Retrieved March 7, 2022.
  107. ^ "Test-Connection". PowerShell documentations. Microsoft. August 9, 2015.
  108. ^ "Tar and Curl Come to Windows! - Microsoft Tech Community - 382409". March 22, 2019. from the original on September 11, 2020. Retrieved May 17, 2020.
  109. ^ Wheeler, Sean (June 2, 2020). "About Scripts". Microsoft Docs. Microsoft.
  110. ^ Wheeler, Sean; Smatlak, David; Wilson, Chase (October 16, 2019). "How to write a PowerShell module manifest". Docs. Microsoft.
  111. ^ Wheeler, Sean; Smatlak, David (November 22, 2019). "How to Write a PowerShell Script Module". Microsoft Docs. Microsoft.
  112. ^ Wheeler, Sean (November 13, 2016). "How to Write a PowerShell Binary Module". Microsoft Docs. Microsoft.
  113. ^ Wheeler, Sean; Jofre, Juan Pablo; Vorobev, Sergei; Nikolaev, Kirill; Coulter, David (June 2, 2020). "About Types.ps1xml". Microsoft Docs. Microsoft.
  114. ^ Wheeler, Sean. "Export-Clixml". Microsoft Docs. Microsoft.
  115. ^ Wheeler, Sean; Jofre, Juan Pablo; Vorobev, Sergei; Nikolaev, Kirill; Coulter, David. "Export-Console". Microsoft Docs. Microsoft.
  116. ^ Wheeler, Sean (June 2, 2020). "About Session Configuration Files". Microsoft Docs. Microsoft.
  117. ^ Wheeler, Sean (June 2, 2020). "New-PSRoleCapabilityFile". Microsoft Docs. Microsoft.
  118. ^ "Microsoft Transporter Suite for Lotus Domino". Microsoft. Retrieved March 7, 2008.
  119. ^ "PowerTools for Open XML". Retrieved June 20, 2008.
  120. ^ "MO74: WebSphere MQ – Windows PowerShell Library". Retrieved December 5, 2007.
  121. ^ "IoT Core Add-ons command-line options". Retrieved June 13, 2020.
  122. ^ "PowerShell Commands for Active Directory by Quest Software". Retrieved July 2, 2008.
  123. ^ "PowerShell Remoting through Group Policy". Retrieved December 7, 2007.
  124. ^ "VMware vSphere PowerCLI". Retrieved September 9, 2014.[permanent dead link]
  125. ^ "Windows PowerShell : IIS7 PowerShell Provider Tech Preview 2". Retrieved July 3, 2008.
  126. ^ "Kudos to the Win7 Diagnostics Team". Retrieved June 15, 2009.
  127. ^ Michael, Niehaus (July 10, 2009). "MDT 2010 New Feature #16: PowerShell support". Retrieved October 27, 2014.
  128. ^ "Kudos to NetApp for Data ONTAP PowerShell ToolKit". Retrieved June 15, 2010.
  129. ^ "PowerShell Toolkit 4.2 Announcement". June 23, 2016. Retrieved September 7, 2016.
  130. ^ "Heterogeneous Job Scheduling With PowerShell". Retrieved September 15, 2010.
  131. ^ . Archived from the original on August 17, 2016. Retrieved February 16, 2012.
  132. ^ "EqualLogic HIT-ME with PowerShell". Retrieved March 9, 2012.
  133. ^ de:LOGINventory
  134. ^ "Selenium PowerShell eXtensions". Retrieved August 20, 2012.[permanent dead link]
  135. ^ "Pash". SourceForge. Dice Holdings, Inc. Retrieved September 27, 2011.
  136. ^ "Pash Project". GitHub. Retrieved April 10, 2013.
  137. ^ "Pash is now obsolete · Issue #429 · Pash-Project/Pash". GitHub. Retrieved November 26, 2019.

Further reading

External links

  • Official website  
  • PowerShell on GitHub
  • Windows PowerShell Survival Guide on TechNet Wiki

powershell, task, automation, configuration, management, program, from, microsoft, consisting, command, line, shell, associated, scripting, language, initially, windows, component, only, known, windows, made, open, source, cross, platform, august, 2016, with, . PowerShell is a task automation and configuration management program from Microsoft consisting of a command line shell and the associated scripting language Initially a Windows component only known as Windows PowerShell it was made open source and cross platform on August 18 2016 with the introduction of PowerShell Core 5 The former is built on the NET Framework the latter on NET previously NET Core PowerShellScreenshot of a PowerShell 7 session in Windows TerminalParadigmImperative pipeline object oriented functional and reflectiveDesigned byJeffrey Snover Bruce Payette James Truher et al DeveloperMicrosoftFirst appearedNovember 14 2006 16 years ago 2006 11 14 Stable release7 3 4 April 12 2023 22 days ago 2023 04 12 1 Preview releasev7 4 0 preview 2 March 14 2023 51 days ago 2023 03 14 2 Typing disciplineStrong safe implicit and dynamicImplementation languageC PlatformPowerShell NETWindows PowerShell NET FrameworkOSWindows 7 and later Windows Server 2008 R2 and later macOS 10 12 and later Ubuntu 14 04 16 04 18 04 20 04 and 22 04 Debian 8 7 9 10 and 11 CentOS 7 and 8 Red Hat Enterprise Linux 7 and 8 openSUSE 42 2 42 3 15 0 15 1 15 2 Fedora 28 29 30LicenseMIT License 3 but the Windows component remains proprietary Filename extensions ps1 Script ps1xml XML Document psc1 Console File psd1 Data File psm1 Script Module pssc Session Configuration File psrc Role Capability File cdxml Cmdlet Definition XML Document Websitemicrosoft wbr com wbr powershellInfluenced byPython Ksh Perl C CL DCL SQL Tcl Tk 4 Chef PuppetSince Windows 10 build 14971 PowerShell replaced Command Prompt and became the default command shell for File Explorer 6 7 In PowerShell administrative tasks are generally performed via cmdlets pronounced command lets which are specialized NET classes implementing a particular operation These work by accessing data in different data stores like the file system or Windows Registry which are made available to PowerShell via providers Third party developers can add cmdlets and providers to PowerShell 8 9 Cmdlets may be used by scripts which may in turn be packaged into modules Cmdlets work in tandem with the NET API PowerShell s support for NET Remoting WS Management CIM and SSH enables administrators to perform administrative tasks on both local and remote Windows systems PowerShell also provides a hosting API with which the PowerShell runtime can be embedded inside other applications These applications can then use PowerShell functionality to implement certain operations including those exposed via the graphical interface This capability has been used by Microsoft Exchange Server 2007 to expose its management functionality as PowerShell cmdlets and providers and implement the graphical management tools as PowerShell hosts which invoke the necessary cmdlets 8 10 Other Microsoft applications including Microsoft SQL Server 2008 also expose their management interface via PowerShell cmdlets 11 PowerShell includes its own extensive console based help similar to man pages in Unix shells accessible via the Get Help cmdlet Updated local help contents can be retrieved from the Internet via the Update Help cmdlet Alternatively help from the web can be acquired on a case by case basis via the online switch to Get Help Contents 1 Background 1 1 Kermit 1 2 Monad 1 3 PowerShell 2 Design 2 1 Grammar 2 2 Named Commands 2 3 Extended Type System 2 4 Cmdlets 2 5 Pipeline 2 6 Scripting 2 7 Hosting 3 Desired State Configuration 4 Versions 4 1 Windows PowerShell 1 0 4 2 Windows PowerShell 2 0 4 3 Windows PowerShell 3 0 4 4 Windows PowerShell 4 0 4 5 Windows PowerShell 5 0 4 6 Windows PowerShell 5 1 4 7 PowerShell Core 6 4 7 1 6 1 4 7 2 6 2 4 8 PowerShell 7 4 8 1 PowerShell 7 2 4 8 2 PowerShell 7 3 4 8 3 PowerShell 7 4 5 Comparison of cmdlets with similar commands 6 Filename extensions 7 Application support 8 Alternative implementation 9 See also 10 References 11 Further reading 12 External linksBackground EditThe command line interpreter CLI has been an inseparable part of most Microsoft operating systems MS DOS and Xenix relied almost exclusively on CLI MS DOS 5 came with a complementary graphical DOS Shell The Windows 9x family came bundled with a href COMMAND COM html title COMMAND COM COMMAND COM a the command line environment of MS DOS The Windows NT and Windows CE families however came with a new a href Cmd exe html title Cmd exe cmd exe a that bore strong similarities to COMMAND COM Both environments support a few basic internal commands and a primitive scripting language batch files which can be used to automate various tasks However they cannot automate all facets of Windows graphical user interface GUI because command line equivalents of operations are limited and the scripting language is elementary Microsoft attempted to address some of these shortcomings by introducing the Windows Script Host in 1998 with Windows 98 and its command line based host cscript exe It integrates with the Active Script engine and allows scripts to be written in compatible languages such as JScript and VBScript leveraging the APIs exposed by applications via the component object model COM However it has its own deficiencies its documentation is not very accessible and it quickly gained a reputation as a system vulnerability vector after several high profile computer viruses exploited weaknesses in its security provisions Different versions of Windows provided various special purpose command line interpreters such as netsh and WMIC with their own command sets but they were not interoperable Windows Server 2003 further attempted to improve the command line experience but scripting support was still unsatisfactory 12 Kermit Edit By the late 1990s Intel had come to Microsoft asking for help in making Windows which ran on Intel CPUs a more appropriate platform to support the development of future Intel CPUs At the time Intel CPU development was accomplished on Sun Microsystems computers which ran Solaris a Unix variant on RISC architecture CPUs The ability to run Intel s many KornShell automation scripts on Windows was identified as a key capability Internally Microsoft began an effort to create a Windows port of Korn Shell which was code named Kermit 13 Intel ultimately pivoted to a Linux based development platform that could run on Intel CPUs rendering the Kermit project redundant However with a fully funded team Microsoft program manager Jeffrey Snover realized there was an opportunity to create a more general purpose solution to Microsoft s problem of administrative automation Monad Edit By 2002 Microsoft had started to develop a new approach to command line management including a CLI called Monad also known as Microsoft Shell 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 14 In a 2017 interview Snover explains the genesis of PowerShell saying that he had been trying to make Unix tools available on Windows which didn t work due to core architectural difference s between Windows and Linux Specifically he noted that Linux considers everything an ASCII text file whereas Windows considers everything an API that returns structured data They were fundamentally incompatible which led him to take a different approach 15 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 on June 17 2005 and the Beta 2 on September 11 2005 and Beta 3 on January 10 2006 PowerShell Edit 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 16 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 17 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 for Linux 7 3 1 on Ubuntu 22 10 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 18 In an October 2009 issue of TechNet Magazine Microsoft called proficiency with PowerShell the single most important skill a Windows administrator will need in the coming years 19 Windows 10 shipped a testing framework for PowerShell 20 On August 18 2016 Microsoft announced 21 that they had made PowerShell open source and cross platform with support for Windows macOS CentOS and Ubuntu 5 The source code was published on GitHub 22 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 23 Starting with version 5 1 PowerShell Core is bundled with Windows Server 2016 Nano Server 24 25 Design EditA key design tactic for PowerShell was to leverage the large number of APIs that already existed in Windows Windows Management Instrumentation NET Framework and other software PowerShell cmdlets wrap around existing functionality The intent with this tactic is 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 26 Grammar Edit PowerShell s developers based the core grammar of the tool on that of the POSIX 1003 2 KornShell 27 However PowerShell s language was also influenced by PHP Perl and many other existing languages 28 Named Commands Edit Windows PowerShell can execute four kinds of named commands 29 cmdlets NET Framework programs designed to interact with PowerShell PowerShell scripts files suffixed by ps1 PowerShell functions Standalone executable programsIf a command is a standalone executable program PowerShell launches it in a separate process if it is a cmdlet it executes in the PowerShell process PowerShell provides an interactive command line interface where the commands can be entered and their output displayed The user interface offers customizable tab completion PowerShell enables the creation of aliases for cmdlets which PowerShell textually translates into invocations of the original commands PowerShell supports both named and positional parameters for commands In executing a cmdlet the job of binding the argument value to the parameter is done by PowerShell itself but for external executables arguments are parsed by the external executable independently of PowerShell interpretation 30 Extended Type System Edit The PowerShell Extended Type System ETS is based on the NET type system but with extended semantics for example propertySets and third party extensibility For example it enables the creation of different views of objects by exposing only a subset of the data fields properties and methods as well as specifying custom formatting and sorting behavior These views are mapped to the original object using XML based configuration files 31 Cmdlets Edit Cmdlets are specialized commands in the PowerShell environment that implement specific functions These are the native commands in the PowerShell stack Cmdlets follow a Verb Noun naming pattern such as Get ChildItem which makes it self documenting code 32 Cmdlets output their results as objects and can also receive objects as input making them suitable for use as recipients in a pipeline If a cmdlet outputs multiple objects each object in the collection is passed down through the entire pipeline before the next object is processed 32 Cmdlets are specialized NET classes which the PowerShell runtime instantiates and invokes at execution time Cmdlets derive either from Cmdlet or from PSCmdlet the latter being used when the cmdlet needs to interact with the PowerShell runtime 32 These base classes specify certain methods BeginProcessing ProcessRecord and EndProcessing which the cmdlet s implementation overrides to provide the functionality Whenever a cmdlet runs PowerShell invokes these methods in sequence with ProcessRecord being called if it receives pipeline input 33 If a collection of objects is piped the method is invoked for each object in the collection The class implementing the cmdlet must have one NET attribute CmdletAttribute which specifies the verb and the noun that make up the name of the cmdlet Common verbs are provided as an enum 34 35 If a cmdlet receives either pipeline input or command line parameter input there must be a corresponding property 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 36 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 37 The implementation of these cmdlet classes can refer to any NET API and may be 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 resultant objects to the pipeline Cmdlets can use NET data access APIs directly or use the PowerShell infrastructure of PowerShell Providers which make data stores addressable using unique paths Data stores are exposed using drive letters and hierarchies within them addressed as directories Windows PowerShell ships with providers for the file system registry the certificate store as well as the namespaces for command aliases variables and functions 38 Windows PowerShell also includes various cmdlets for managing various Windows systems including the file system or using Windows Management Instrumentation to control Windows components Other applications can register cmdlets with PowerShell thus allowing it to manage them and if they enclose any datastore such as a database they can add specific providers as well citation needed The number of cmdlets included in the base PowerShell install has generally increased with each version Version CmdletsWindows PowerShell 1 0 129 39 Windows PowerShell 2 0 632 40 Windows PowerShell 3 0 about 1 000 41 Windows PowerShell 4 0 Windows PowerShell 5 0 about 1 300 42 Windows PowerShell 5 1 1586 citation needed PowerShell Core 6 0 PowerShell Core 6 1 PowerShell Core 6 2 PowerShell 7 0 1507 citation needed PowerShell 7 1 PowerShell 7 2 Cmdlets can be added into the shell through snap ins deprecated in v2 and modules users are not limited to the cmdlets included in the base PowerShell installation Pipeline Edit PowerShell implements the concept of a pipeline which enables piping the output of one cmdlet to another cmdlet as input For example the output of the Get Process cmdlet could be piped to the Where Object to filter any process that has less than 1 MB of paged memory and then to the Sort Object cmdlet e g to sort the objects by handle count and then finally to the Select Object cmdlet to select just the first ten processes based on handle count citation needed As with Unix pipelines PowerShell pipelines can construct complex commands using the 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 Additionally structured NET objects rather than byte streams are passed from one stage to the next Using objects and executing stages within the PowerShell runtime eliminates the need to serialize data structures or to extract them by explicitly parsing text output 43 An object can also encapsulate certain functions that work on the contained data which become available to the recipient command for use 44 45 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 46 47 Because all PowerShell objects are NET objects they share a ToString method which retrieves the text representation of the data in an object In addition PowerShell allows formatting definitions to be specified so the text representation of objects can be customized by choosing which data elements to display and in what manner However in order to maintain backward compatibility if an external executable is used in a pipeline it receives a text stream representing the object instead of directly integrating with the PowerShell type system 48 49 50 Scripting Edit Windows PowerShell includes a dynamically typed scripting language which can implement complex operations using cmdlets imperatively The scripting language supports variables functions branching a href Conditional programming html class mw redirect title Conditional programming if then else a loops a href While loop html title While loop while a a href Do while loop html title Do while loop do a a href For loop html title For loop for a and a href Foreach html class mw redirect title Foreach foreach a structured error exception handling and closures lambda expressions 51 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 C foo txt 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 citation needed 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 52 PowerShell also provides arrays and associative arrays The PowerShell scripting language also evaluates arithmetic expressions entered on the command line immediately and it parses common abbreviations such as GB MB and KB 53 54 Using the function keyword PowerShell provides for the creation of functions A simple function has the following general look 55 function name Type Param1 Type Param2 Instructions However PowerShell allows for advanced functions that support named parameters positional parameters switch parameters and dynamic parameters 55 function Verb Noun param Definition of static parameters dynamicparam Definition of dynamic parameters begin Set of instruction to run at the start of the pipeline process Main instruction sets ran for each item in the pipeline end Set of instruction to run at the end of the pipeline The defined function is invoked in either of the following forms 55 name value1 value2 Verb Noun Param1 value1 Param2 value2PowerShell 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 56 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 56 PowerShell accepts strings both raw and escaped A string enclosed between single quotation marks is a raw string while a string enclosed between double quotation marks is an escaped string PowerShell treats straight and curly quotes as equivalent 57 The following list of special characters is supported by PowerShell 58 PowerShell special characters Sequence Meaning 0 Null a Alert b Backspace e Escape since PowerShell 6 f Form feed n Newline r Carriage return t Horizontal tab u x Unicode escape sequence since PowerShell 6 v Vertical tab Treat any character from this point forward literallyFor 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 59 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 60 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 61 The PowerShell scripting language supports binary prefix notation similar to the scientific notation supported by many programming languages in the C family 62 Hosting Edit 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 Via the APIs the application can instantiate a runspace one instantiation of the PowerShell runtime which runs in the application s process and is exposed as a Runspace object 8 The state of the runspace is encased in a SessionState object When the runspace is created the Windows 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 citation needed 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 8 When a pipeline is created Windows 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 8 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 citation needed Microsoft Exchange Server 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 citation needed Desired State Configuration EditDSC allows for declaratively specifying how a software environment should be configured 63 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 EditInitially using the code name Monad PowerShell was first shown publicly at the Professional Developers Conference in October 2003 in Los Angeles All major releases are still supported and each major release has featured backwards compatibility with preceding versions Windows PowerShell 1 0 Edit Windows PowerShell 1 0 session using the Windows Console PowerShell 1 0 was released in November 2006 for Windows XP SP2 Windows Server 2003 SP1 and Windows Vista 64 It is an optional component of Windows Server 2008 Windows PowerShell 2 0 Edit Windows PowerShell ISE v2 0 on Windows 7 an integrated development environment for PowerShell scripts PowerShell 2 0 is integrated with Windows 7 and Windows Server 2008 R2 65 and is released for Windows XP with Service Pack 3 Windows Server 2003 with Service Pack 2 and Windows Vista with Service Pack 1 66 67 PowerShell v2 includes changes to the scripting language and hosting API in addition to including more than 240 new cmdlets 68 69 New features of PowerShell 2 0 include 70 71 72 PowerShell remoting Using WS Management PowerShell 2 0 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 PowerShell 2 0 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 These are cmdlets written using the PowerShell scripting language Initially called script cmdlets this feature was later renamed advanced functions 73 SteppablePipelines This allows the user to control when the BeginProcessing ProcessRecord and EndProcessing functions of a cmdlet are called Modules This allows script developers and administrators to organize and partition PowerShell 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 PowerShell scripting 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 It allows breakpoints to be set in a PowerShell script or function Breakpoints can be set on lines line amp columns commands and read or write access of variables It includes a set of cmdlets to control the breakpoints via script Eventing This feature allows listening forwarding and acting on management and system events Eventing allows PowerShell hosts to be notified about state changes to their managed entities It also enables PowerShell scripts to subscribe to ObjectEvents PSEvents and WmiEvents and process them synchronously and asynchronously Windows PowerShell Integrated Scripting Environment ISE PowerShell 2 0 includes a GUI based PowerShell host that provides integrated debugger syntax highlighting tab completion and up to 8 PowerShell Unicode enabled consoles Runspaces in a tabbed UI as well as the ability to run only the selected parts in a script Network file transfer Native support for prioritized throttled and asynchronous transfer of files between machines using the Background Intelligent Transfer Service BITS 74 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 PowerShell Here Strings have been improved and can now nest 75 Block comments PowerShell 2 0 supports block comments using lt and gt as delimiters 76 New APIs The new APIs range from handing more control over the PowerShell 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 managed by PowerShellWindows PowerShell 3 0 Edit PowerShell 3 0 is integrated with Windows 8 and with Windows Server 2012 Microsoft has also made PowerShell 3 0 available for Windows 7 with Service Pack 1 for Windows Server 2008 with Service Pack 1 and for Windows Server 2008 R2 with Service Pack 1 77 78 PowerShell 3 0 is part of a larger package Windows Management Framework 3 0 WMF3 which also contains the WinRM service to support remoting 78 Microsoft made several Community Technology Preview releases of WMF3 An early community technology preview 2 CTP 2 version of Windows Management Framework 3 0 was released on December 2 2011 79 Windows Management Framework 3 0 was released for general availability in December 2012 80 and is included with Windows 8 and Windows Server 2012 by default 81 New features in PowerShell 3 0 include 78 82 33 34 Scheduled jobs Jobs can be scheduled to run on a preset time and date using the Windows Task Scheduler infrastructure Session connectivity Sessions can be disconnected and reconnected Remote sessions have become more tolerant of temporary network failures Improved code writing Code completion IntelliSense and snippets are added PowerShell ISE allows users to use dialog boxes to fill in parameters for PowerShell 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 further explanation needed Windows PowerShell 4 0 Edit PowerShell 4 0 is integrated with Windows 8 1 and with Windows Server 2012 R2 Microsoft has also made PowerShell 4 0 available for Windows 7 SP1 Windows Server 2008 R2 SP1 and Windows Server 2012 83 New features in PowerShell 4 0 include Desired State Configuration 84 85 86 Declarative language extensions and tools that enable the deployment and management of configuration data for systems using the DMTF management standards and WS Management Protocol New default execution policy On Windows Servers the default execution policy is now RemoteSigned Save Help Help can now be saved for modules that are installed on remote computers Enhanced debugging The debugger now supports debugging workflows remote script execution and preserving debugging sessions across PowerShell session reconnections PipelineVariable switch A new ubiquitous parameter to expose the current pipeline object as a variable for programming purposes Network diagnostics to manage physical and Hyper V s virtualized network switches Where and ForEach method syntax provides an alternate method of filtering and iterating over objects Windows PowerShell 5 0 Edit PowerShell 5 0 icon Windows Management Framework WMF 5 0 RTM which includes PowerShell 5 0 was re released to web on February 24 2016 following an initial release with a severe bug 87 Key features included The new class keyword that creates classes for object oriented programming The new enum keyword that creates enums OneGet cmdlets to support the Chocolatey package manager 88 Extending support for switch management to layer 2 network switches 89 Debugging for PowerShell background jobs and instances of PowerShell 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 PowerShell classesWindows PowerShell 5 1 Edit It was released along with the Windows 10 Anniversary Update 90 on August 2 2016 and in Windows Server 2016 91 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 92 A preview for PowerShell 5 1 was released for Windows 7 Windows Server 2008 Windows Server 2008 R2 Windows Server 2012 and Windows Server 2012 R2 on July 16 2016 93 and was released on January 19 2017 94 PowerShell 5 1 is the first version to come in two editions of Desktop and Core The Desktop edition is the continuation of the traditional Windows PowerShell that runs on the NET Framework stack 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 25 This was the final version of PowerShell made exclusively for Windows PowerShell Core 6 Edit PowerShell Core 6 0 was first announced on August 18 2016 when Microsoft unveiled PowerShell Core and its decision to make the product cross platform independent of Windows free and open source 5 It achieved general availability on January 10 2018 for Windows macOS and Linux 95 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 96 The most significant change in this version of PowerShell is the expansion to the other platforms For Windows administrators this version of PowerShell did not include any major new features In an interview with the community on January 11 2018 the PowerShell team was asked to list the top 10 most exciting things that would happen for a Windows IT professional who would migrate from Windows PowerShell 5 1 to PowerShell Core 6 0 in response Angel Calvo of Microsoft could only name two cross platform and open source 97 6 1 Edit According to Microsoft one of the new features of PowerShell 6 1 is Compatibility with 1900 existing cmdlets in Windows 10 and Windows Server 2019 98 Still no details of these cmdlets can be found in the full version of the change log 99 Microsoft later professes that this number was insufficient as PowerShell Core failed to replace Windows PowerShell 5 1 and gain traction on Windows 100 It was however popular on Linux 100 6 2 Edit PowerShell Core 6 2 is focused primarily on performance improvements bug fixes and smaller cmdlet and language enhancements that improved developer productivity 101 PowerShell 7 Edit PowerShell 7 is the replacement for PowerShell Core 6 x products as well as Windows PowerShell 5 1 which is the last supported Windows PowerShell version 102 100 The focus in development was to make PowerShell 7 a viable replacement for Windows PowerShell 5 1 i e to have near parity with Windows PowerShell in terms of compatibility with modules that ship with Windows 103 New features in PowerShell 7 include 104 The Parallel switch for the ForEach Object cmdlet to help handle parallel processing Near parity with Windows PowerShell in terms of compatibility with built in Windows modules A new error view The Get Error cmdlet Pipeline chaining operators amp amp and that allow conditional execution of the next cmdlet in the pipeline The operator for ternary operation 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 HelpPowerShell 7 2 Edit PowerShell 7 2 is the next long term support version of PowerShell after version 7 0 It uses NET 6 0 and features universal installer packages for Linux On Windows updates to PowerShell 7 2 and later come via the Microsoft Update service this feature has been missing from PowerShell 6 0 through 7 1 105 PowerShell 7 3 Edit This version includes some general Cmdlet updates and fixes testing for framework dependent package in release pipeline as well as build and packaging improvements 106 PowerShell 7 4 Edit This section is empty You can help by adding to it April 2023 Comparison of cmdlets with similar commands EditThe following table contains a selection of the cmdlets that ship with PowerShell noting similar commands in other well known command line interpreters Many of these similar commands come out of the box defined as aliases within PowerShell making it easy for people familiar with other common shells to start working Comparison of PowerShell cmdlets with internal and external commands of other command line interpreters PowerShell Cmdlet PowerShell Alias Windows Command Prompt Unix shell DescriptionGet ChildItem gci dir ls a dir ls Lists all files and folders in the current or given folderTest Connection b ping ping ping Sends ICMP echo requests to the specified machine from the current machine or instructs another machine to do soGet Content gc type cat type cat Gets the content of a fileGet Command gcm help where type which compgen Lists available commands and gets command pathGet Help help man a help apropos man Prints a command s documentation on the consoleClear Host cls clear cls clear Clears the screen c Copy Item cpi copy cp copy xcopy robocopy cp Copies files and folders to another locationMove Item mi move mv move mv Moves files and folders to a new locationRemove Item ri del erase rmdir rd rm del erase rmdir rd rm rmdir Deletes files or foldersRename Item rni ren mv ren rename mv Renames a single file folder hard link or symbolic linkGet Location gl cd pwd cd pwd Displays the working path current folder Pop Location popd popd popd Changes the working path to the location most recently pushed onto the stackPush Location pushd pushd pushd Stores the working path onto the stackSet Location sl cd chdir cd chdir cd Changes the working pathTee Object tee tee Pipes input to a file or variable passing the input along the pipelineWrite Output echo write echo echo Prints strings or other objects to the standard outputGet Process gps ps tlist d tasklist e ps Lists all running processesStop Process spps kill kill d taskkill e kill f Stops a running processSelect String sls find findstr grep Prints lines matching a patternSet Variable sv set set env export set setenv Creates or alters the contents of an environment variableInvoke WebRequest iwr curl wget g curl 108 wget curl Gets contents from a web page on the InternetNotes a b ls and man aliases are absent in the Linux version of PowerShell Core While the external ping command remains available to PowerShell Test Connection s output is a structured object that can be programmatically inspected 107 Clear Host is implemented as a predefined PowerShell function a b Available in Windows NT 4 Windows 98 Resource Kit Windows 2000 Support Tools a b Introduced in Windows XP Professional Edition Also used in UNIX to send a process any signal the Terminate signal is merely the default curl and wget aliases are absent from PowerShell Core so as to not interfere with invoking similarly named native commands Filename extensions EditExtension Description ps1 Script file 109 psd1 Module s manifest file usually comes with a script module or binary module 110 psm1 Script module file 111 dll DLL compliant a binary module file 112 ps1xml Format and type definitions file 50 113 xml XML compliant b serialized data file 114 psc1 Console file 115 pssc Session configuration file 116 psrc Role Capability file 117 Dynamic link library DLL is not a PowerShell only format It is a generic format for storing compiled NET assembly s code XML is not a PowerShell only format It is a popular information interchange format Application support EditApplication Version Cmdlets Provider Management GUIExchange Server 2007 402 Yes YesWindows Server 2008 Yes Yes NoMicrosoft SQL Server 2008 Yes Yes NoMicrosoft SharePoint 2010 Yes Yes NoSystem Center Configuration Manager 2012 R2 400 Yes NoSystem Center Operations Manager 2007 74 Yes NoSystem Center Virtual Machine Manager 2007 Yes Yes YesSystem Center Data Protection Manager 2007 Yes No NoWindows Compute Cluster Server 2007 Yes Yes NoMicrosoft Transporter Suite for Lotus Domino 118 08 02 0012 47 No NoMicrosoft PowerTools for Open XML 119 1 0 33 No NoIBM WebSphere MQ 120 6 0 2 2 44 No NoIoT Core Add ons 121 74 Un known Un knownQuest Management Shell for Active Directory 122 1 7 95 No NoSpecial Operations Software Specops Command 123 1 0 Yes No YesVMware vSphere PowerCLI 124 6 5 R1 500 Yes YesInternet Information Services 125 7 0 54 Yes NoWindows 7 Troubleshooting Center 126 6 1 Yes No YesMicrosoft Deployment Toolkit 127 2010 Yes Yes YesNetApp PowerShell Toolkit 128 129 4 2 2000 Yes YesJAMS Scheduler Job Access amp Management System 130 5 0 52 Yes YesUIAutomation 131 0 8 432 No NoDell Equallogic 132 3 5 55 No NoLOGINventory 133 5 8 Yes Yes YesSePSX 134 0 4 1 39 No NoAlternative implementation EditA project named Pash a pun on the widely known bash Unix shell has been an open source and cross platform reimplementation of PowerShell via the Mono framework 135 Pash was created by Igor Moochnick written in C and was released under the GNU General Public License Pash development stalled in 2008 was restarted on GitHub in 2012 136 and finally ceased in 2016 when PowerShell was officially made open source and cross platform 137 See also EditCommon Information Model computing Comparison of command shells Comparison of programming languages Web Based Enterprise Management Windows Script Host Windows TerminalReferences Edit v7 3 4 Release of PowerShell PowerShell PowerShell repo Microsoft Retrieved April 13 2023 via GitHub com v7 4 0 preview 2 Release of PowerShell PowerShell PowerShell repo Microsoft Retrieved April 13 2023 via GitHub com PowerShell for every system June 12 2017 via GitHub com Snover Jeffrey May 25 2008 PowerShell and WPF WTF Windows PowerShell Blog Microsoft a b c Bright Peter August 18 2016 PowerShell is Microsoft s latest open source release coming to Linux OS X Ars Technica Conde Nast Archived from the original on April 9 2020 Retrieved May 12 2020 Announcing Windows 10 Insider Preview Build 14971 for PC PowerShell is replacing Command Prompt a b c d e powershell Retrieved March 13 2023 Truher Jim December 2007 Extend Windows PowerShell With Custom Commands MSDN Magazine Microsoft Archived from the original on October 6 2008 Lowe Scott January 4 2007 Exchange 2007 Get used to the command line TechRepublic CBS Interactive Archived from the original on November 16 2018 Retrieved May 12 2020 Snover Jeffrey November 13 2007 SQL Server Support for PowerShell Windows PowerShell Blog blog posting Microsoft Archived from the original on November 15 2007 Retrieved November 13 2007 Dragan Richard V April 23 2003 Windows Server 2003 Delivers Improvements All Around PCMag com Ziff Davis A standout feature here is that virtually all admin utilities now work from the command line and most are available through telnet Jones Don 2020 Shell of an Idea The Untold History of PowerShell p 25 ISBN 978 1 9536450 3 6 Jeffrey P Snover August 8 2002 Monad Manifesto PDF Windows PowerShell Blog Microsoft Retrieved April 2 2021 Biggar and Harbaugh September 14 2017 The Man Behind Windows PowerShell To Be Continuous Podcast Heavybit Retrieved September 14 2017 Windows PowerShell Monad Has Arrived Windows PowerShell Blog Microsoft April 25 2006 Snover Jeffrey November 15 2006 Windows PowerShell amp Windows Vista Windows PowerShell Blog blog posting Microsoft Windows Management Framework Windows PowerShell 2 0 WinRM 2 0 and BITS 4 0 Support Microsoft September 30 2013 Archived from the original on October 13 2013 Posey Brien October 6 2009 10 reasons why you should learn to use PowerShell TechRepublic Retrieved April 2 2021 What is Pester and Why Should I Care December 14 2015 Snover Jeffrey August 18 2016 PowerShell is open sourced and is available on Linux Microsoft Azure Blog Microsoft PowerShell PowerShell GitHub Retrieved August 18 2016 Hansen Kenneth Calvo Angel August 18 2016 PowerShell on Linux and Open Source Windows PowerShell Blog Microsoft Foley Mary Jo August 18 2016 Microsoft open sources PowerShell brings it to Linux and Mac OS X ZDNet CBS Interactive a b PowerShell on Nano Server TechNet Microsoft October 20 2016 Jones Don 2020 Shell of an Idea The Untold History of PowerShell p 45 ISBN 978 1 9536450 3 6 Payette Bruce 2007 Windows PowerShell in Action Manning Pubs Co Series Manning p 27 ISBN 9781932394900 Retrieved July 22 2016 The core PowerShell language is based on the POSIX 1003 2 grammar for the Korn shell Jones Don 2020 Shell of an Idea The Untold History of PowerShell p 109 ISBN 978 1 9536450 3 6 about Command Precedence TechNet Microsoft May 8 2014 Wheeler Sean September 7 2021 about Parsing PowerShell Microsoft Docs Retrieved December 5 2021 a href Template Cite web html title Template Cite web cite web a CS1 maint url status link Windows PowerShell Extended Type System Retrieved November 28 2007 a b c Windows PowerShell Cmdlets Retrieved November 28 2007 Creating Your First Cmdlet Retrieved November 28 2007 Get Verb TechNet Microsoft May 8 2014 Cmdlet Overview MSDN Microsoft May 8 2014 Adding parameters That Process Command Line Input Retrieved November 28 2007 Adding parameters That Process Pipeline Input Retrieved November 28 2007 Windows PowerShell Providers Retrieved October 14 2010 Yoshizawa Tomoaki Ramos Durval September 29 2012 PowerShell 1 0 Cmdlets TechNet Articles Microsoft Yoshizawa Tomoaki July 10 2012 PowerShell 2 0 Cmdlets TechNet Articles Microsoft Wilson Ed 2013 1 Overview of Windows PowerShell 3 0 Windows Powershell 3 0 Step by Step Sebastopol California Microsoft Press ISBN 978 0 7356 7000 6 OCLC 829236530 Windows PowerShell 3 0 comes with about 1 000 cmdlets on Windows 8 Wilson Ed 2015 1 Overview of Windows PowerShell 5 0 Windows PowerShell Step by Step Third ed Redmond Washington Microsoft Press ISBN 978 1 5093 0043 3 OCLC 927112976 Windows PowerShell 5 0 comes with about 1 300 cmdlets on Windows 10 Windows PowerShell Owner s Manual Piping and the Pipeline in Windows PowerShell TechNet Microsoft Retrieved September 27 2011 Jones Don 2008 Windows PowerShell Rethinking the Pipeline Microsoft TechNet Microsoft Retrieved November 28 2007 Windows PowerShell Object Concepts Archived from the original on August 19 2007 Retrieved November 28 2007 How PowerShell Formatting and Outputting REALLY works Retrieved November 28 2007 More How does PowerShell formatting really work Retrieved November 28 2007 about Pipelines TechNet Microsoft May 8 2014 about Objects TechNet Microsoft May 8 2014 a b about Format ps1xml TechNet Microsoft May 8 2014 Anonymous Functions and Code Blocks in PowerShell Retrieved January 21 2012 Introduction to Windows PowerShell s Variables Retrieved November 28 2007 Byte Conversion Windows PowerShell Tip of the Week Retrieved November 15 2013 Ravikanth May 20 2013 Converting to size units KB MB GB TB and PB without using PowerShell multipliers PowerShell Magazine a b c about Functions Microsoft TechNet Microsoft October 17 2013 Retrieved November 15 2013 a b Lightweight Testing with Windows PowerShell Retrieved November 28 2007 Angelopoulos Alex Karen Bemowski December 4 2007 PowerShell Got Smart About Smart Quotes Windows IT Pro Penton Media Retrieved November 15 2013 About Special Characters Powershell Scripting Microsoft June 8 2017 Retrieved June 20 2019 Trap Exception In PowerShell Retrieved November 28 2007 Running Windows PowerShell Scripts Microsoft Retrieved November 28 2007 about Signing Microsoft TechNet Microsoft October 17 2013 Retrieved November 15 2013 Lee Holmes September 2006 Windows PowerShell Quick Reference O Reilly Media eslesar Windows PowerShell Desired State Configuration Overview msdn microsoft com Chung Leonard Snover Jeffrey Kumaravel Arul November 14 2006 It s a Wrap Windows PowerShell 1 0 Released Windows PowerShell Blog Microsoft PowerShell will be installed by default on Windows Server 08 R2 WS08R2 and Windows 7 W7 Windows PowerShell Blog Microsoft October 28 2008 Retrieved September 27 2011 Windows Management Framework is here October 27 2009 Retrieved October 30 2009 Microsoft Support Knowledge Base Windows Management Framework Windows PowerShell 2 0 WinRM 2 0 and BITS 4 0 Support microsoft com September 23 2011 Retrieved September 27 2011 574 Reasons Why We Are So Proud and Optimistic About W7 and WS08R2 Windows PowerShell Blog Microsoft October 29 2008 Retrieved September 27 2011 Snover Jeffrey 2008 PowerShell Creating Manageable Web Services Archived from the original on October 13 2008 Retrieved July 19 2015 What s New in CTP of PowerShell 2 0 Retrieved November 28 2007 Windows PowerShell V2 Community Technology Preview 2 CTP2 releaseNotes Microsoft Archived from the original on May 6 2008 Retrieved May 5 2008 Differences between PowerShell 1 0 and PowerShell 2 0 Archived from the original on September 17 2010 Retrieved June 26 2010 Jones Don May 2010 Windows PowerShell Writing Cmdlets in Script TechNet Magazine Microsoft GoGrid Snap in Managing Cloud Services with PowerShell Windows PowerShell Blog Microsoft October 14 2008 Retrieved September 27 2011 Emit XML Windows PowerShell Blog Microsoft October 17 2008 Retrieved September 27 2011 Block Comments in V2 Windows PowerShell Blog Microsoft June 14 2008 Retrieved September 27 2011 Lee Thomas August 13 2012 PowerShell Version 3 is RTM Under The Stairs Retrieved August 13 2012 a b c Windows Management Framework 3 0 Download Center Microsoft September 4 2012 Retrieved November 8 2012 Windows Management Framework 3 0 Community Technology Preview CTP 2 Available for Download Windows PowerShell Blog Microsoft December 2 2011 Windows Management Framework 3 0 Download Center Microsoft December 3 2012 Jofre JuanPablo December 14 2016 Windows PowerShell System Requirements Microsoft Developer Network Microsoft Retrieved April 20 2017 Honeycutt Jerry 2012 Woolley Valerie ed Introducing Windows 8 An Overview for IT Professionals Redmond WA Microsoft Press ISBN 978 0 7356 7050 1 Windows Management Framework 4 0 is now available Microsoft October 24 2013 Retrieved November 4 2013 Levy Shay June 25 2013 New Features in Windows PowerShell 4 0 PowerShell Magazine Retrieved June 26 2013 Desired State Configuration in Windows Server 2012 R2 PowerShell Channel 9 Microsoft June 3 2013 Archived from the original on December 26 2013 Retrieved June 26 2013 Hall Adrian June 7 2013 Thoughts from Microsoft TechEd North America Blogs Tips amp Tricks Splunk Retrieved June 26 2013 Windows Management Framework WMF 5 0 RTM packages has been republished Windows PowerShell Blog Microsoft February 24 2016 Q and A GitHub Retrieved April 21 2015 Snover Jeffrey April 3 2014 Windows Management Framework V5 Preview blogs technet com Microsoft Archived from the original on June 30 2014 Retrieved April 21 2015 says Jaap Brasser August 2 2016 PSTip New PowerShell Commands in Windows 10 Anniversary Update What s New In Windows Server 2016 Standard Edition Part 9 Management And Automation Microsoft PowerShell LocalAccounts Module technet microsoft com Announcing Windows Management Framework WMF 5 1 Preview July 16 2016 WMF 5 1 Microsoft Download Center Aiello Joey January 11 2018 PowerShell Core 6 0 Generally Available GA and Supported PowerShell Team Blog Microsoft Archived from the original on June 11 2018 Retrieved June 11 2018 Aiello Joey Wheeler Sean January 10 2018 PowerShell Core Support Lifecycle Microsoft Docs Microsoft Calvo Angel January 11 2018 Top 10 most exciting reasons to migrate PowerShell AMA Microsoft Aiello Joey September 13 2018 Announcing PowerShell Core 6 1 devblogs microsoft com Microsoft Retrieved June 1 2019 PowerShell PowerShell GitHub Retrieved June 22 2020 a b c Lee Steve April 5 2019 The Next Release of PowerShell PowerShell 7 Microsoft Retrieved June 1 2019 Lee Steve March 28 2019 General Availability of PowerShell Core 6 2 devblogs microsoft com Microsoft Retrieved June 1 2019 Mackie Kurt May 30 2019 Microsoft Releases PowerShell 7 Preview 1105 Media Inc Retrieved June 1 2019 Lee Steve May 30 2019 PowerShell 7 Road Map devblogs microsoft com Microsoft Retrieved August 12 2020 PowerShell 7 Preview 5 PowerShell October 23 2019 Archived from the original on February 15 2020 Retrieved March 5 2020 PowerShell 7 2 is the new version of Microsoft s next generation shell itsfoss net November 12 2021 Release v7 3 0 Release of PowerShell PowerShell PowerShell GitHub Archived from the original on November 9 2022 Retrieved March 7 2022 Test Connection PowerShell documentations Microsoft August 9 2015 Tar and Curl Come to Windows Microsoft Tech Community 382409 March 22 2019 Archived from the original on September 11 2020 Retrieved May 17 2020 Wheeler Sean June 2 2020 About Scripts Microsoft Docs Microsoft Wheeler Sean Smatlak David Wilson Chase October 16 2019 How to write a PowerShell module manifest Docs Microsoft Wheeler Sean Smatlak David November 22 2019 How to Write a PowerShell Script Module Microsoft Docs Microsoft Wheeler Sean November 13 2016 How to Write a PowerShell Binary Module Microsoft Docs Microsoft Wheeler Sean Jofre Juan Pablo Vorobev Sergei Nikolaev Kirill Coulter David June 2 2020 About Types ps1xml Microsoft Docs Microsoft Wheeler Sean Export Clixml Microsoft Docs Microsoft Wheeler Sean Jofre Juan Pablo Vorobev Sergei Nikolaev Kirill Coulter David Export Console Microsoft Docs Microsoft Wheeler Sean June 2 2020 About Session Configuration Files Microsoft Docs Microsoft Wheeler Sean June 2 2020 New PSRoleCapabilityFile Microsoft Docs Microsoft Microsoft Transporter Suite for Lotus Domino Microsoft Retrieved March 7 2008 PowerTools for Open XML Retrieved June 20 2008 MO74 WebSphere MQ Windows PowerShell Library Retrieved December 5 2007 IoT Core Add ons command line options Retrieved June 13 2020 PowerShell Commands for Active Directory by Quest Software Retrieved July 2 2008 PowerShell Remoting through Group Policy Retrieved December 7 2007 VMware vSphere PowerCLI Retrieved September 9 2014 permanent dead link Windows PowerShell IIS7 PowerShell Provider Tech Preview 2 Retrieved July 3 2008 Kudos to the Win7 Diagnostics Team Retrieved June 15 2009 Michael Niehaus July 10 2009 MDT 2010 New Feature 16 PowerShell support Retrieved October 27 2014 Kudos to NetApp for Data ONTAP PowerShell ToolKit Retrieved June 15 2010 PowerShell Toolkit 4 2 Announcement June 23 2016 Retrieved September 7 2016 Heterogeneous Job Scheduling With PowerShell Retrieved September 15 2010 UIAutomation PowerShell Extensions Archived from the original on August 17 2016 Retrieved February 16 2012 EqualLogic HIT ME with PowerShell Retrieved March 9 2012 de LOGINventory Selenium PowerShell eXtensions Retrieved August 20 2012 permanent dead link Pash SourceForge Dice Holdings Inc Retrieved September 27 2011 Pash Project GitHub Retrieved April 10 2013 Pash is now obsolete Issue 429 Pash Project Pash GitHub Retrieved November 26 2019 Further reading EditFinke Douglas 2012 Windows PowerShell for Developers O Reilly Media ISBN 978 1 4493 2270 0 Holmes Lee 2006 Windows PowerShell Quick Reference O Reilly Media ISBN 0 596 52813 2 Holmes Lee 2007 Windows PowerShell Cookbook O Reilly Media ISBN 978 0 596 52849 2 Jones Don Hicks Jeffery 2010 Windows PowerShell 2 0 TFM 3rd ed Sapien Technologies ISBN 978 0 9821314 2 8 Jones Don 2020 Shell of an Idea The Untold History of PowerShell Self published ISBN 978 1 9536450 3 6 Kopczynski Tyson Handley Pete Shaw Marco 2009 Windows PowerShell Unleashed 2nd ed Pearson Education ISBN 978 0 672 32988 3 Kumaravel Arul White Jon Naixin Li Michael Happell Scott Xie Guohui Vutukuri Krishna C 2008 Professional Windows PowerShell Programming Snapins Cmdlets Hosts and Providers Wrox Press ISBN 978 0 470 17393 0 Oakley Andy 2005 Monad AKA PowerShell O Reilly Media ISBN 0 596 10009 4 Watt Andrew 2007 Professional Windows PowerShell Wrox Press ISBN 978 0 471 94693 9 Wilson Ed 2013 Windows PowerShell 3 0 Step by Step Microsoft Press ISBN 978 0 7356 6339 8 Wilson Ed 2014 Windows PowerShell Best Practices Microsoft Press ISBN 978 0 7356 6649 8 External links Edit Wikiversity has learning resources about PowerShell Official website PowerShell on GitHub Windows PowerShell Survival Guide on TechNet Wiki Retrieved from https en wikipedia org w index php title PowerShell amp oldid 1153100685, wikipedia, wiki, book, books, library,

article

, read, download, free, free download, mp3, video, mp4, 3gp, jpg, jpeg, gif, png, picture, music, song, movie, book, game, games.