Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

PowerShell

From Wikipedia, the free encyclopedia
(Redirected fromWindows PowerShell)
Cross-platform shell based on .NET technology

PowerShell
Screenshot of a PowerShell 7.5.0 session inWindows Terminal
ParadigmImperative,pipeline,object-oriented,functional andreflective
Designed byJeffrey Snover, Bruce Payette, James Truher (et al.)
DeveloperMicrosoft
First appearedNovember 14, 2006; 18 years ago (2006-11-14)
Stable release
7.5.2 / 24 June 2025; 14 days ago (2025-06-24)[1][2]
Preview release
7.6.0.preview.4 / 8 April 2025; 3 months ago (2025-04-08)[3]
Typing disciplineStrong,safe,implicit anddynamic
Implementation languageC#
PlatformPowerShell:.NET
Windows PowerShell:.NET Framework
OS
LicenseMIT License[4] (but the Windows component remainsproprietary)
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,[5]Chef,Puppet

PowerShell is ashellprogram developed byMicrosoft for task automation andconfiguration management. As is typical for a shell, it provides acommand-lineinterpreter for interactive use and ascript interpreter for automation via alanguage defined for it. Originally only for Windows, known asWindows PowerShell, it was madeopen-source andcross-platform on August 18, 2016, with the introduction ofPowerShell Core.[6] The former is built on the.NET Framework; the latter on.NET (previously .NET Core).

PowerShell is bundled with currentversions of Windows and can be installed onmacOS andLinux.[6] SinceWindows 10 build 14971, PowerShell replacedCommand Prompt as the defaultcommand shell exposed byFile Explorer.[7][8]

In PowerShell, administrative tasks are generally performed viacmdlets (pronouncedcommand-lets), which are specialized .NETclasses implementing a particular operation. These work by accessing data in different data stores, like thefile system orWindows Registry, which are made available to PowerShell viaproviders. Third-party developers can add cmdlets and providers to PowerShell.[9][10] Cmdlets may be used by scripts, which may in turn be packaged into modules. Cmdlets work in tandem with the .NETAPI.

PowerShell's support for.NET Remoting,WS-Management,CIM, andSSH enables administrators to perform administrative tasks on both local and remote Windows systems. PowerShell also provides a hostingAPI 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 thegraphical interface. This capability has been used byMicrosoft Exchange Server 2007 to expose its management functionality as PowerShell cmdlets and providers and implement thegraphical management tools as PowerShell hosts which invoke the necessary cmdlets.[9][11] Other Microsoft applications includingMicrosoft SQL Server 2008 also expose their management interface via PowerShell cmdlets.[12]

PowerShell includes its own extensive,console-based help (similar toman pages inUnix shells) accessible via theGet-Help cmdlet. Updated local help contents can be retrieved from the Internet via theUpdate-Help cmdlet. Alternatively, help from the web can be acquired on a case-by-case basis via the-online switch toGet-Help.

Background

[edit]

Shell programs, including PowerShell, trace lineage to shells in olderoperating systems such asMS-DOS andXenix which exposed system functionality to the user almost exclusively via acommand-line interface (CLI) – althoughMS-DOS 5 also came with a complementary graphicalDOS Shell. TheWindows 9x family came bundled withCOMMAND.COM, the command-line environment of MS-DOS. TheWindows NT andWindows CE families, however, came with the newercmd.exe – a significant upgrade from COMMAND.COM. Both environments provide CLI for both internal and external commands and automation viabatch files – a relatively primitive language for scripting.

To address limitations of these shells – including the inability to directly use asoftware component exposed viaCOM – Microsoft introduced theWindows Script Host in 1998 withWindows 98, and its command-line based host,cscript.exe. It integrates with theActive Script engine and allows scripts to be written in compatible languages, such asJScript andVBScript. These scripts can use COM components directly, but it has relatively inaccessible documentation and gained a reputation as a systemvulnerability vector after several high-profilecomputer viruses exploited weaknesses in its security provisions.

Different versions of Windows provided various special-purpose command-line interpreters (such asnetsh andWMIC) 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.[13]

Kermit

[edit]
Microsoft program manager and PowerShell Chief ArchitectJeffrey Snover

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 onSun Microsystems computers which ranSolaris (aUnix variant) onRISC-architecture CPUs. The ability to run Intel's manyKornShell 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.[14] Intel ultimately pivoted to aLinux-based development platform that could run on Intel CPUs, rendering the Kermit project redundant. However, with a fully funded team, Microsoft program managerJeffrey 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 asMicrosoft 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.[15] In a 2017 interview, Snover explains the genesis of PowerShell, saying that he had been trying to makeUnix tools available on Windows, which didn't work due to "core architectural difference[s] between Windows and Linux". Specifically, he noted thatLinux considers everything atext file, whereas Windows considers everything an "API that returns structured data". They were fundamentally incompatible, which led him to take a different approach.[16]

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 publicbeta release on June 17, 2005, and the Beta 2 on September 11, 2005, and Beta 3 on January 10, 2006.

PowerShell

[edit]
The first version of PowerShell

On April 25, 2006, not long after the initial Monad announcement, Microsoft announced that Monad had been renamedWindows PowerShell, positioning it as a significant part of its management technology offerings.[17] 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 finalrelease to the web on November 14, 2006. PowerShell for earlier versions of Windows was released on January 30, 2007.[18] PowerShell v2.0 development began before PowerShell v1.0 shipped. During the development, Microsoft shipped threecommunity technology previews (CTP). Microsoft made these releases available to the public. The last CTP release of Windows PowerShell v2.0 was made available in December 2008.

PowerShell v2.0 was completed and released to manufacturing in August 2009, as an integral part of Windows 7 and Windows Server 2008 R2. Versions of PowerShell for Windows XP, Windows Server 2003, Windows Vista and Windows Server 2008 were released in October 2009 and are available for download for both 32-bit and 64-bit platforms.[19] In an October 2009 issue ofTechNet Magazine, Microsoft called proficiency with PowerShell "the single most important skill a Windowsadministrator will need in the coming years".[20]

Windows 10 shipped with Pester, a script validation suite for PowerShell.[21]

PowerShell for Linux 7.3.1 onUbuntu 22.10

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

Pash

[edit]

A project namedPash, apun on the widely known "bash" Unix shell, has been anopen-source andcross-platform reimplementation of PowerShell via theMono framework.[27] Pash was created by Igor Moochnick, written inC# and was released under theGNU General Public License. Pash development stalled in 2008, was restarted onGitHub in 2012,[28] and finally ceased in 2016 when PowerShell was officially made open-source and cross-platform.[29]

Design

[edit]

Philosophy

[edit]

A key design goal for PowerShell was to leverage the large number ofAPIs that already existed in Windows, Windows Management Instrumentation, .NET Framework, and other software. PowerShell cmdlets generally wrap and expose existing functionality instead of implementing new functionality. The intent was to provide an administrator-friendly, more-consistent interface between administrators and a wide range of underlying functionality. With PowerShell, an administrator doesn't need to know .NET, WMI, or low-level API coding, and can instead focus on using the cmdlets exposed by PowerShell. In this regard, PowerShell creates little new functionality, instead focusing on making existing functionality more accessible to a particular audience.[30]

Grammar

[edit]

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

However, PowerShell's language was also influenced byPHP,Perl, and many other existing languages.[32]

Named Commands

[edit]

PowerShell can execute four kinds of named commands:[33]

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

If a command is a standalone executable program, PowerShell launches it in a separateprocess; if it is a cmdlet, it executes in the PowerShell process. PowerShell provides an interactivecommand-line interface, where the commands can be entered and their output displayed. The user interface offers customizabletab completion. PowerShell enables the creation ofaliases for cmdlets, which PowerShell textually translates into invocations of the original commands. PowerShell supports bothnamed and positionalparameters 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.[34]

Extended Type System

[edit]

The PowerShellExtended 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 usingXML-based configuration files.[35]

Cmdlets

[edit]

A cmdlet is a .NETclass that derives either fromCmdlet or fromPSCmdlet; the latter used when it needs to interact with the PowerShell runtime.[36] The base classes specify methods –BeginProcessing(),ProcessRecord() andEndProcessing() – which a cmdlet overrides to provide functionality based on the events that these functions represent.ProcessRecord() is called if the object receives pipeline input.[37] If a collection of objects is piped, the method is invoked for each object in the collection. The cmdlet class must have theattributeCmdletAttribute which specifies the verb and the noun that make up the name of the cmdlet.

A cmdlet name follows aVerb-Noun naming pattern, such asGet-ChildItem, which tends to make itself-documented.[36] Common verbs are provided as anenum.[38][39]

If a cmdlet receives either pipeline input or command-line parameter input, there must be a correspondingproperty in the class, with amutator 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 byParameterAttribute[40] and are set before the call toBeginProcessing(). Those which map to pipeline input are also flanked byParameterAttribute, but with theValueFromPipeline attribute parameter set.[41]

A cmdlet can use any.NETAPI and may be written in any.NET language. In addition, PowerShell makes certain APIs available, such asWriteObject(), which is used to access PowerShell-specific functionality, such as writing objects to the pipeline. A cmdlet can use .NET a data accessAPI directly or use the PowerShell infrastructure ofProviders, which make data stores addressable using uniquepaths. Data stores are exposed usingdrive letters, and hierarchies within them, addressed as directories. PowerShell ships with providers for thefile system,registry, thecertificate store, as well as thenamespaces for command aliases, variables, and functions.[42] PowerShell also includes various cmdlets for managing variousWindows systems, including thefile system, or usingWindows Management Instrumentation to controlWindows 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]

A cmdlet can be added to the shell via modules or before v2 snap-ins. Users are not limited to the cmdlets included in the base PowerShell installation.

The number of cmdlets included in the base PowerShell install for various versions:

  • Windows PowerShell 1.0: 129[43]
  • Windows PowerShell 2.0: 632[44]
  • Windows PowerShell 3.0: ≈1,000[45]
  • Windows PowerShell 5.0: ≈1,300[46]
  • Windows PowerShell 5.1: 1,586[citation needed]
  • PowerShell 7.0: 1,507[citation needed]
  • PowerShell 7.4: 1,656

Pipeline

[edit]

To enablepipelinesemantics, similar to theUnix pipeline, a cmdlet receives input and outputs result as objects. If a cmdlet outputs multiple objects, each object of the collection is passed through the pipeline before the next object is processed.[36] A PowerShell pipeline enables complex logic using the pipe (|) operator to connect stages. However, the PowerShell pipeline differs from Unix pipelines in that stages executewithin the PowerShell runtime rather than as a set of processes coordinated by theoperating system. Additionally, structured .NET objects, rather thanbyte streams, are passed from one stage to the next. Usingobjects and executing stages within the PowerShell runtime eliminates the need toserialize data structures, or to extract them by explicitlyparsing text output.[47] An object can alsoencapsulate certain functions that work on the contained data, which become available to the recipient command for use.[48][49] For the last cmdlet in a pipeline, PowerShell automatically pipes its output object to theOut-Default cmdlet, which transforms the objects into a stream of format objects and then renders those to the screen.[50][51]

Because a PowerShell object is a .NET object, it has a.ToString() method which is used to serialize object state. In addition, PowerShell allows formatting definitions to be specified, so the text representation of objects can be customized by choosing which data elements to display, and in what manner. However, in order to maintainbackward 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.[52][53][54]

Scripting

[edit]

PowerShell includes adynamically typedlanguage for scripting which can implement complex operations using cmdletsimperatively. The language supports variables, functions, branching (if-then-else), loops (while,do,for, andforeach), structured error/exception handling andclosures/lambda expressions,[55] 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 anL-value, anything assigned to it will be written to the file. When used as anR-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.[56] PowerShell also providesarrays andassociative arrays. The PowerShell language also evaluates arithmetic expressions entered on the command line immediately, and it parses common abbreviations, such as GB, MB, and KB.[57][58]

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

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

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

functionVerb-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:[59]

namevalue1value2Verb-Noun-Param1value1-Param2value2

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

PowerShell acceptsstrings, both raw andescaped. A string enclosed between singlequotation 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.[61]

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

PowerShell special characters
SequenceMeaning
`0Null
`aAlert
`bBackspace
`eEscape (since PowerShell 6)
`fForm feed
`nNewline
`rCarriage return
`tHorizontal tab
`u{x}Unicode escape sequence (since PowerShell 6)
`vVertical tab
--%Treat any character from this point forward literally

For error handling, PowerShell provides a .NET-basedexception-handling mechanism. In case of errors, objects containing information about the error (Exception object) are thrown, which are caught using thetry ... catch construct (although atrap 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.[63]

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.[64] Enabling of scripts can be performed either at system, user or session level. PowerShell scripts can besigned to verify their integrity, and are subject toCode Access Security.[65]

The PowerShell language supportsbinary prefix notation similar to thescientific notation supported by many programming languages in the C-family.[66]

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 amanaged hostingAPI. Via the APIs, the application can instantiate arunspace (one instantiation of the PowerShell runtime), which runs in the application'sprocess and is exposed as aRunspace object.[9] The state of the runspace is encased in aSessionState object. When the runspace is created, the PowerShell runtime initializes the instantiation, including initializing the providers and enumerating the cmdlets, and updates theSessionState 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 aPipeline 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.[9] When a pipeline is created, PowerShell invokes the pipeline processor, which resolves the cmdlets into their respectiveassemblies (thecommand processor) and adds a reference to them to the pipeline, and associates them withInputPipe,OutputPipe andErrorOutputPipe objects, to represent the connection with the pipeline. The types are verified and parameters bound usingreflection.[9] Once the pipeline is set up, the host calls theInvoke() method to run the commands, or its asynchronous equivalent,InvokeAsync(). If the pipeline has theWrite-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, whichinterprets the scripts entered at command line and creates the necessaryPipeline objects and invokes them.[citation needed]

Desired State Configuration

[edit]

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

Upon running aconfiguration, DSC will ensure that the system gets the state described in the configuration. DSC configurations are idempotent. TheLocal Configuration Manager (LCM) periodically polls the system using the control flow described byresources (imperative pieces of DSC) to make sure that the state of a configuration is maintained.

Versions

[edit]

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

Project Monad

[edit]

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

Windows PowerShell

[edit]

1.0

[edit]

Named Windows PowerShell, version 1.0 was released in November 2006 forWindows XP SP2,Windows Server 2003 SP1 andWindows Vista[68] and as an optional component ofWindows Server 2008.

2.0

[edit]
Windows PowerShell ISE v2.0 onWindows 7, anintegrated development environment for PowerShell scripts

Version 2.0 integrates withWindows 7 andWindows Server 2008 R2[69] and is released forWindows XP with Service Pack 3,Windows Server 2003 with Service Pack 2, andWindows Vista with Service Pack 1.[70][71]

The version includes changes to the language and hosting API, in addition to including more than 240 new cmdlets.[72][73]

New features include:[74][75][76]

  • Remoting: UsingWS-Management, Allows scripts and cmdlets to be invoked on a remote machine or a large set of remote machines.
  • Background jobs: Also called aPSJob, 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 performtransactional operations. Includes transaction cmdlets for starting, committing, and rolling back aPSTransaction as well as features to manage and direct the transaction to the participating cmdlet and provider operations. The PowerShell Registry provider supports transactions.
  • Advanced functions: Initially called "script cmdlets", these bundled cmdlets was later renamed "advanced functions".[77]
  • SteppablePipelines: This allows the user to control when theBeginProcessing(),ProcessRecord() andEndProcessing() functions of a cmdlet are called.
  • Modules: Allows script developers and administrators to organize and partition scripts in self-contained, reusable units. Code from amodule executes in its own self-contained context and does not affect the state outside the module. Modules can define a restricted runspace environment by using a script. They have a persistent state as well as public and private members.
  • Data language: A domain-specific subset of the language that allows data definitions to be decoupled from the scripts and allowslocalized string resources to be imported into the script at runtime (Script Internationalization).
  • Script debugging: Allowsbreakpoints to be set in a script or function. Breakpoints can be set on lines, line & columns, commands and read or write access of variables. It includes a set of cmdlets to control the breakpoints via script.
  • Eventing: Allows listening, forwarding, and acting on management and system events. Eventing allows hosts to be notified about state changes to their managed entities. It also enables scripts to subscribe toObjectEvents,PSEvents, andWmiEvents and process them synchronously and asynchronously.
  • Integrated Scripting Environment (ISE): GUI-based host that provides integrated debugger,syntax highlighting, tab completion and up to 8 Unicode-enabled consoles (Runspaces) in a tabbed UI, as well as the ability to run only the selected parts in a script.
  • Network file transfer: Native support for prioritized, throttled, and asynchronous transfer of files between machines using theBackground Intelligent Transfer Service (BITS).[78]
  • New cmdlets: IncludingOut-GridView, which displays tabular data in theWPFGridView object, on systems that allow it, and if ISE is installed and enabled.
  • New operators:-Split,-Join, and Splatting (@) operators.
  • Exception handling with Try-Catch-Finally: Unlike other .NET languages, this allows multiple exception types for a single catch block.
  • Nestable Here-Strings:Here-Strings have been improved and can now nest.[79]
  • Block comments: Support for block comments using<# and#> as delimiters.[80]
  • New APIs: The new APIs range from handing more control over the parser and runtime to the host, to creating and managing collection of Runspaces (RunspacePools) as well as the ability to createRestricted Runspaces which only allow a configured subset of PowerShell to be invoked. The new APIs also support participation in a transaction

3.0

[edit]

Version 3.0 integrates withWindows 8,Windows Server 2012,Windows 7 with Service Pack 1,Windows Server 2008 with Service Pack 1, andWindows Server 2008 R2 with Service Pack 1.[81][82]

Version 3.0 is part of a larger package,Windows Management Framework 3.0 (WMF3), which also contains theWinRM service to support remoting.[82] Microsoft made severalCommunity 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.[83] Windows Management Framework 3.0 was released for general availability in December 2012[84] and is included with Windows 8 and Windows Server 2012 by default.[85]

New features include:[82][86]: 33–34 

  • Scheduled jobs: Jobs can be scheduled to run on a preset time and date using theWindows 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) andsnippets are added. ISE allows users to use dialog boxes to fill in parameters for cmdlets.
  • Delegation support: Administrative tasks can be delegated to users who do not have permissions for that type of task, without granting them perpetual additional permissions.
  • Help update: Help documentations can be updated via Update-Help command.
  • Automatic module detection: Modules are loaded implicitly whenever a command from that module is invoked. Code completion works for unloaded modules as well.
  • New commands: Dozens of new modules were added, including functionality to manage disksget-WmiObject win32_logicaldisk, volumes, firewalls, network connections, and printers, which had previously been performed via WMI.[further explanation needed]

4.0

[edit]

Version 4.0 integrates withWindows 8.1,Windows Server 2012 R2,Windows 7 SP1,Windows Server 2008 R2 SP1 andWindows Server 2012.[87]

New features include:

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

5.0

[edit]
Version 5.0 icon

Version 5.0 was re-released with Windows Management Framework (WMF) 5.0 on February 24, 2016, following an initial release with a severe bug.[91]

Key features included:

  • The newclasskeyword that createsclasses forobject-oriented programming
  • The newenum keyword that createsenums
  • OneGet cmdlets to support theChocolateypackage manager[92]
  • Extending support for switch management tolayer 2 network switches.[93]
  • Debugging for background jobs and instances hosted in other processes (each of which is called a "runspace")
  • Desired State Configuration (DSC) Local Configuration Manager (LCM) version 2.0
  • DSC partial configurations
  • DSC Local Configuration Manager meta-configurations
  • Authoring of DSC resources using classes
5.1
[edit]

Version 5.1 was released along with theWindows 10 Anniversary Update[94] on August 2, 2016, and inWindows Server 2016.[95] 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.[96] A preview for was released for Windows 7, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, and Windows Server 2012 R2 on July 16, 2016,[97] and was released on January 19, 2017.[98]

Version 5.1 is the first to come in two editions of "Desktop" and "Core". The "Desktop" edition is the continuation product line that uses the .NET Framework, and the "Core" edition runs on .NET Core and is bundled with Windows Server 2016 Nano Server. In exchange for smaller footprint, the latter lacks some features such as the cmdlets to manage clipboard or join a computer to a domain, WMI version 1 cmdlets, Event Log cmdlets and profiles.[26] This was the final version exclusively for Windows. Version 5.1 remains pre-installed on Windows 10, Windows 11 and Windows Server 2022, while the .NET version needs to be installed separately and can run side-by-side with the .NET Framework version.[99][100]

PowerShell Core

[edit]

6.0

[edit]

Renamed to PowerShell Core, version 6.0 was first announced on August 18, 2016, when Microsoft unveiled its decision to make the productcross-platform, independent of Windows, free and open source.[6] It achievedgeneral availability on January 10, 2018, for Windows,macOS andLinux.[101] 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.[102]

The most significant change in this version is the expansion to the other platforms. For Windows administrators, this version did not include any major new features. In an interview with the community on January 11, 2018, the development team was asked to list the top 10 most exciting things that would happen for a Windows IT professional who would migrate from version 5.1 to version 6.0. In response, Angel Calvo of Microsoft could only name two: cross-platform and open-source.[103] PowerShell 6 changed toUTF-8 as default encoding, with some exceptions.[104] (version 7.4 changes more to UTF-8)[105]

6.1
[edit]

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

6.2
[edit]

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

PowerShell

[edit]

7.0

[edit]

Renamed to simply PowerShell, version 7 replaces the previous product lines: PowerShell Core and Windows PowerShell.[110][108] The focus in development was to make version 7 a viable replacement for version 5.1, i.e. to have near parity with it in terms of compatibility with modules that ship with Windows.[111]

New features include:[112]

  • The-Parallel switch for theForEach-Object cmdlet to help handle parallel processing
  • A new error view
  • TheGet-Error cmdlet
  • Pipeline chaining operators (&& and||) that allow conditional execution of the next cmdlet in the pipeline
  • The?: operator forternary operation
  • The?? operator fornull coalescing
  • The??= operator for null coalescing assignment
  • Cross-platformInvoke-DscResource (experimental)
  • Return of theOut-GridView cmdlet
  • Return of the-ShowWindow switch for theGet-Help
7.2
[edit]

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

7.3
[edit]

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

7.4
[edit]

Version 7.4 is based on .NET 8 and is considered the long term support (LTS) release.[115]

Changes include:[116]

7.5
[edit]

Version 7.5, is the latest stable release; released January 2025; built on .NET 9.0.1. It includes enhancements for performance, usability, and security.[117] Key updates include improvements to tab completion, such as better type inference and new argument completers, as well as fixes for Invoke-WebRequest and Invoke-RestMethod. This release also adds the new ConvertTo-CliXml and ConvertFrom-CliXml cmdlets, and updates core modules like PSReadLine and Microsoft.PowerShell.PSResourceGet. Breaking changes include updates to Test-Path parameter handling, and default settings for New-FileCatalog.

Prior to GA Release there were 5 preview releases and 1 RC release of PowerShell v7.5.0,[118] with a full release blog post for this version expected soon.

7.6
[edit]

Version 7.6 is based on .NET 9 and is the latest preview release. The first preview release v7.6.0-preview.2[119] was released on January 15, 2025.

Changes include: TBD[120]

Comparison of cmdlets with similar commands

[edit]

The following table contains various cmdlets that ship with PowerShell that have notably similar functionality to commands in other shells. Many of these cmdlets are exposed to the user via predefined aliases to make their use familiar to users of the other shells.

Comparison of cmdlets with commands of other shells
CmdletPredefined
alias
Command Prompt
command
Unix shell
command
Functionality
Clear-Host[a]cls,clearclsclearClears the screen
Copy-Itemcpi,copy,cpcopycpCopies files and folders
Get-ChildItemgci, dir, ls[b]dirlsLists files and folders
Get-Commandgcmhelp,wheretype,which,compgenLists available commands and gets command path
Get-Contentgc,type,cattypecatReports the content of a file
Get-Date
{{{1}}}
date +timedateReports date and time
Get-Helphelp,man[c]helpapropos,manReports a command's documentation
Get-Historyghy,h,historyDOSKEY /HISTORYfc -l,history[d]Lists previous commands
Get-Locationgl,pwdcdpwdReports theworking directory
Get-Processgps,pstlist,[e]tasklist[f]psReports running processes
Invoke-WebRequestiwr,curl,wget[g]curl[121]wget,curlDownloads contents from the Internet
Measure-Objectmeasurewc (Unix)Counts characters, words and lines of text. Powershell adds summaries of numeric properties of objects
Move-Itemmi,move,mvmovemvMoves files and folders
Pop-LocationpopdpopdpopdReverts the working directory to the path last pushed
Push-LocationpushdpushdpushdPushes the working directory path and changes the working directory
Read-Host
{{{1}}}
set /PreadReads input into a variable from the command line
Remove-Itemri,del,erase,rmdir,rd,rmdel,erase,rmdir,rdrm,rmdirDeletes files or folders
Rename-Itemrni,renren,renamemvRenames a file or folder
Register-ScheduledJobat, schtasks[122]at,cronSchedule tasks to be run at a different time
Select-Stringslsfind,findstrgrepReports lines of a file that match a pattern
Set-Date
{{{1}}}
date +timedate -sResets the date and time
Set-Locationsl,cd,chdircd,chdircdChanges the working path
Set-Variablesv,setsetenv,export,set,setenvCreates or alters the contents of anenvironment variable
Sort-ObjectsortsortsortSorts lines of text; cmdlet also sorts objects
Stop-Processspps,killkill,[e]taskkill[f]kill[h]Stops a running process
Tee-ObjectteeteePipes input to a file or variable, passing the input along the pipeline
Test-Connection[i]pingpingpingSendsICMP echo requests to a remote machine
Write-Outputecho,writeechoechoWrites text tostandard output

Notes

  1. ^implemented as a predefined function
  2. ^ls is absent from the Linux version of PowerShell Core
  3. ^man is absent from the Linux version of PowerShell Core
  4. '^fc is defined in the POSIX standard andhistory is not. However most Unix implementations also definehistory.
  5. ^abAvailable inWindows NT 4,Windows 98 Resource Kit, Windows 2000 Support Tools
  6. ^abIntroduced in Windows XP Professional Edition
  7. ^curl andwget are absent from PowerShell Core, so as to not interfere with similarly named native commands
  8. ^Also used in UNIX to send a process anysignal, the "Terminate" signal is merely the default
  9. ^While the externalping command remains available to PowerShell, Test-Connection's output is a structuredobject that can be programmatically inspected.[123]

Filename extensions

[edit]
ExtensionDescription
.ps1Script file[124]
.psd1Module's manifest file; usually comes with a script module or binary module[125]
.psm1Script module file[126]
.ps1xmlFormat and type definitions file[54][127]
.psc1Console file[128]
.psscSession configuration file[129]
.psrcRole Capability file[130]

Application support

[edit]
ApplicationVersionCmdletsProviderManagement GUI
Exchange Server2007402YesYes
Windows Server2008YesYesNo
Microsoft SQL Server2008YesYesNo
Microsoft SharePoint2010YesYesNo
System Center Configuration Manager2012 R2400+YesNo
System Center Operations Manager200774YesNo
System Center Virtual Machine Manager2007YesYesYes
System Center Data Protection Manager2007YesNoNo
Windows Compute Cluster Server2007YesYesNo
Microsoft Transporter Suite forLotus Domino[131]08.02.001247NoNo
Microsoft PowerTools forOpen XML[132]1.033NoNo
IBM WebSphere MQ[133]6.0.2.244NoNo
IoT Core Add-ons[134]74Un­knownUn­known
Quest Management Shell for Active Directory[135]1.795NoNo
Special Operations Software Specops Command[136]1.0YesNoYes
VMware vSphere PowerCLI[137]6.5 R1500+YesYes
Internet Information Services[138]7.054YesNo
Windows 7 Troubleshooting Center[139]6.1YesNoYes
Microsoft Deployment Toolkit[140]2010YesYesYes
NetApp PowerShell Toolkit[141][142]4.22000+YesYes
JAMS Scheduler – Job Access & Management System[143]5.052YesYes
UIAutomation[144]0.8432NoNo
Dell Equallogic[145]3.555NoNo
LOGINventory[146]5.8YesYesYes
SePSX[147]0.4.139NoNo

See also

[edit]

References

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

Further reading

[edit]

External links

[edit]
Wikiversity has learning resources aboutPowerShell
Management
tools
Apps
Shell
Services
File systems
Server
Architecture
Security
Compatibility
API
Games
Discontinued
Games
Apps
Others
Spun off to
Microsoft Store
Ecosystem
Interpreters
Terminals
File system navigation
File management
Archiving
Disk management
Processes
Registry
User environment
File contents
Scripting
Networking
Maintenance and care
Boot management
Software development
Miscellaneous
Architecture
Components
Implementations
Microsoft
Other
Languages
Major
Other
Comparison
Graphics and UI
Audio
Multimedia
Web
Data access
Networking
Communication
Administration and
management
Component model
Libraries
Device drivers
Security
.NET
Software factories
IPC
Accessibility
Text and multilingual
support
Overview
Software
Applications
Video games
Programming
languages
Frameworks,
development tools
Operating systems
Other
Licenses
Forges
Related
Retrieved from "https://en.wikipedia.org/w/index.php?title=PowerShell&oldid=1298876413"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp