不加热血清反应素试验是什么| 胆结石不能吃什么东西| 芦荟胶有什么作用| 什么帽不能戴| 蛋蛋疼是什么原因| 心软是什么意思| falcon是什么牌子| 手莫名其妙的肿了因为什么| 早餐吃什么最有营养又减肥| 大便变细是什么原因| 看见蛇过马路什么征兆| 灵芝泡水喝有什么好处| 农历六月十九是什么日子| 判缓刑是什么意思| imao什么意思| 大豆是什么| 现在是什么意思| 边缘心电图是什么意思| 杏色配什么颜色最洋气| 溃疡性结肠炎有什么症状| 发高烧是什么原因引起的| 什么叫前列腺| 保护肾吃什么食物好| 鹰头皮带是什么牌子| 什么什么欲什么成语| 什么是肉桂| 西米是什么做成的| 下巴脖子长痘痘是什么原因| 2002年是什么生肖| 泪囊炎用什么眼药水| 醋泡什么壮阳最快| 什么啤酒好喝| 什么破壁机好用| 心内科全称叫什么| 女人吃牛蛙有什么好处| 吃三七粉有什么功效| 吃糖醋蒜有什么好处和坏处| 什么秒必争| 镜检白细胞是什么意思| 脚踝浮肿是什么原因引起的| 砼为什么念hun| abby是什么意思| 嚭是什么意思| 抗核抗体谱检测查什么的| 小康生活的标准是什么| 卯时五行属什么| 颈椎退行性病变是什么意思| 临床诊断是什么意思| 阴虚火旺有什么症状| 梦见白菜是什么预兆| 折服是什么意思| 蓝色的小药丸是什么药| 免冠彩照是什么意思| sanyo是什么牌子| 619是什么意思| 什么病误诊为帕金森| 17楼五行属什么| 女人阳虚吃什么药效果最好| 为什么不爱我| 暗喻是什么意思| 箬叶和粽叶有什么区别| 衬衫什么面料好| 羊驼吃什么| 胆汁淤积症有什么症状| 月结是什么意思| 怀孕初期有什么表现| 猪八戒姓什么| 官宣是什么意思| 麦乳精是什么东西| 血半念什么| 全血低切相对指数偏高什么意思| 活性印染是什么意思| 愚人节是什么意思| 空调病是什么| 独活主治什么病| 社保卡属于什么银行| 脚旁边骨头突出叫什么| 此地无银三百两什么意思| 任达华属什么生肖| leep是什么意思| 榄仁叶是什么树的叶子| 健康管理是什么专业| 梦见捡鸡蛋是什么意思| 为什么姨妈迟迟不来| 容易长口腔溃疡是什么原因| 为什么老做梦| 100是什么意思| 42天产后检查都检查什么项目| pppd是什么意思| 2004属什么| 狮子吃什么食物| 排骨煮什么好吃| 肝功能不全是什么意思| 阴道黑是什么原因| 枭印什么意思| 贫血吃什么补品| 减肥适合吃什么| tap是什么意思| 海马体是什么| 辣椒有什么营养价值| 痤疮用什么药膏| 向日葵是什么| dolphin是什么意思| 尿里红细胞高什么原因| 大黄和芒硝混合外敷有什么作用| 眼睛发黄什么原因| 真相是什么意思| 丝瓜不能和什么一起吃| 兜售是什么意思| 10周年结婚是什么婚| 为什么会气虚| 三点水一个高念什么| kv是什么单位| 点状血流信号是什么意思| 取环后要注意什么事项| 大疱性皮肤病是什么病| 属兔生什么属相宝宝好| 脑梗吃什么药| 父母都是b型血孩子是什么血型| 梦见诈尸预示什么| 卵巢在什么位置示意图| 牛黄安宫丸什么时候吃最好| yy飞机票是什么| 七月十九是什么星座| 手长水泡是什么原因| syphilis是什么意思| 女人每天喝什么最养颜| 吊丝是什么意思| 洗衣机不出水是什么原因| 还记得年少时的梦吗是什么歌| 智齿是什么原因引起的| 左眼跳财是什么意思| 中统和军统有什么区别| 耳朵会动的人说明什么| 金开什么字| 检查颈椎挂什么科| 胃肠蠕动慢吃什么药| 上吐下泻吃什么药| 立春是什么生肖| 女人出虚汗失眠吃什么药| 夜字五行属什么| 梦见洪水是什么意思| 女儿红是什么| 心率高有什么危害| 调和油是什么油| 孙俪最新电视剧叫什么| 面包属于什么类食品| 阴唇为什么会长痘痘| 刮宫是什么| 可爱是什么意思| 旦上面加一横是什么字| 精制盐是什么盐| 德国什么东西值得买| 平均血小板体积偏高是什么意思| 肿瘤前期有什么症状| 股长是什么职位| 子宫憩室有什么症状| 什么的花灯| 盆底肌是什么| 脑袋疼是什么原因| 甲胎蛋白是检查什么| 膝盖内侧疼吃什么药| 二八佳人是什么意思| 什么是再生纤维面料| 梦见房子漏水是什么意思| 疤痕贴什么时候用最佳| 山穷水尽疑无路是什么生肖| 鹅蛋治什么妇科病| 令羽读什么| 桂花是什么颜色的| 幽门螺杆菌阳性什么意思| 什么麻料最好| 梦见晒被子是什么意思| 同房子宫疼痛什么原因| 胃食管反流能吃什么水果| 外阴瘙痒用什么洗液| 男人身体虚吃什么补| 黑色的玫瑰花代表什么| 和亲是什么意思| 小腿出汗是什么原因| 小孩子发烧吃什么药| 打封闭针有什么坏处| 作灶什么意思| 乳晕是什么意思| 老放臭屁是什么原因| 西瓜适合什么土壤种植| 沙发是什么意思| 晨僵是什么症状| 1996年是什么命| 老年人出虚汗是什么原因引起的| 经典什么意思| 预防脑梗用什么药效果好| 7月一日是什么节日| 血氨高会导致什么后果| 中性粒细胞绝对值高是什么原因| 幼小衔接班是什么意思| 脚腕酸是什么原因| 收是什么生肖| resp是什么意思| 睚眦什么意思| 被利用的信任是什么歌| dmd是什么意思| 老出虚汗是什么原因| k金是什么金| 德国用什么货币| 咳黄痰吃什么药好得快| 磨破皮了涂什么药| 地钱是什么植物| 3.22是什么星座| 左边小腹痛什么原因女| rinnai是什么品牌| qcy是什么牌子| 外阴白斑用什么药最好| 经血颜色淡是什么原因| 孕妇上火什么降火最快| 什么是命| 狼烟是什么意思| 肉桂是什么东西| 为什么正骨后几天越来越疼| 三天没有大便是什么原因| 血常规查的是什么项目| 仓鼠吃什么食物| 惰性是什么意思| 绿豆汤是什么颜色| 白痰多是什么原因造成的| 西瓜和什么食物相克| 肚子疼是什么原因一阵一阵的| 口苦什么原因| 心脏不舒服吃什么药最好| 脑供血不足吃什么中成药| 维生素d有什么作用| 小水滴会变成什么| 晚上六点半是什么时辰| 嘴上起泡是什么原因| 两个日是什么字| 谷朊粉是什么| 睡着后抽搐抖动是什么| 险资举牌什么意思| 清热解毒煲什么汤最好| 头疼去医院挂什么科| ca125是什么检查项目| 血糯米是什么米| 脑堵塞有什么症状| 查激素水平挂什么科| 菠萝蜜过敏什么症状| 666是什么意思| 尚公主是什么意思| 考护士资格证需要什么条件| 什么是真菌| 胳膊疼痛是什么原因| 刚满月的小狗吃什么| 吃红薯有什么好处| 勾心斗角什么意思| 精液是什么颜色的| 戴银首饰对身体有什么好处| 什么食物含叶黄素最多| 黑玫瑰代表什么| 回盲肠在什么位置| 喉咙干燥是什么原因| 小精灵是什么意思| 胡萝卜含有什么维生素| horns是什么意思| 喉咙长溃疡是什么原因| 新生儿干呕是什么原因| 百度Jump to content

漳平市地方戏曲、民俗展播——  ...

From Wikipedia, the free encyclopedia
百度 因此,在评价网络文学作品时,应当找到更加客观、公正、科学的评价标准。

PowerShell
Screenshot of a PowerShell 7.5.0 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; 18 years ago (2025-08-06)
Stable release
7.5.2 / 24 June 2025; 34 days ago (2025-08-06)[1][2]
Preview release
7.6.0.preview.4 / 8 April 2025; 3 months ago (2025-08-06)[3]
Typing disciplineStrong, safe, implicit and dynamic
Implementation languageC#
PlatformPowerShell: .NET
Windows PowerShell: .NET Framework
OS
LicenseMIT License[4] (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,[5] Chef, Puppet

PowerShell is a shell program developed by Microsoft for task automation and configuration management. As is typical for a shell, it provides a command-line interpreter for interactive use and a script interpreter for automation via a language defined for it. Originally only for Windows, known as Windows PowerShell, it was made open-source and cross-platform on August 18, 2016, with the introduction of PowerShell Core.[6] The former is built on the .NET Framework; the latter on .NET (previously .NET Core).

PowerShell is bundled with current versions of Windows and can be installed on macOS and Linux.[6] Since Windows 10 build 14971, PowerShell replaced Command Prompt as the default command shell exposed by File Explorer.[7][8]

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

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

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

Background

[edit]

Shell programs, including PowerShell, trace lineage to shells in older operating systems such as MS-DOS and Xenix which exposed system functionality to the user almost exclusively via a command-line interface (CLI) – although MS-DOS 5 also 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 the newer cmd.exe – a significant upgrade from COMMAND.COM. Both environments provide CLI for both internal and external commands and automation via batch files – a relatively primitive language for scripting.

To address limitations of these shells – including the inability to directly use a software component exposed via COM – Microsoft introduced 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. These scripts can use COM components directly, but it has relatively inaccessible documentation and gained a reputation as a system vulnerability vector after several high-profile computer 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.[13]

Kermit

[edit]
Microsoft program manager and PowerShell Chief Architect Jeffrey 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 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.[14] 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.[15] 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 a text 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 public beta 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 renamed Windows 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 final release 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 three community technology previews (CTP). Microsoft made these releases available to the public. The last CTP release of Windows PowerShell v2.0 was made available in December 2008.

PowerShell v2.0 was completed and released to manufacturing in August 2009, as an integral part of Windows 7 and Windows Server 2008 R2. Versions of PowerShell for Windows XP, Windows Server 2003, Windows Vista and Windows Server 2008 were released in October 2009 and are available for download for both 32-bit and 64-bit platforms.[19] 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".[20]

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

PowerShell for Linux 7.3.1 on Ubuntu 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 and Ubuntu.[6] The source code was published on GitHub.[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 with Windows Server 2016 Nano Server.[25][26]

Pash

[edit]

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.[27] 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,[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 of APIs 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 the POSIX 1003.2 KornShell.[31]

However, PowerShell's language was also influenced by PHP, 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
  • 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.[34]

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

Cmdlets

[edit]

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

A cmdlet name follows a Verb-Noun naming pattern, such as Get-ChildItem, which tends to make it self-documented.[36] Common verbs are provided as an enum.[38][39]

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[40] 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.[41]

A cmdlet can use any .NET API and may be written in any .NET language. In addition, PowerShell makes certain APIs available, such as WriteObject(), which is used to access PowerShell-specific functionality, such as writing objects to the pipeline. A cmdlet can use .NET a data access API directly or use the PowerShell infrastructure of Providers, which make data stores addressable using unique paths. Data stores are exposed using drive letters, and hierarchies within them, addressed as directories. PowerShell ships with providers for the file system, registry, the certificate store, as well as the namespaces for command aliases, variables, and functions.[42] 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]

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 enable pipeline semantics, similar to the Unix pipeline, a cmdlet receives input and outputs result as objects. If a cmdlet outputs multiple objects, each object of the collection is passed through the pipeline before the next object is processed.[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 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.[47] An object can also encapsulate 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 the Out-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 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.[52][53][54]

Scripting

[edit]

PowerShell includes a dynamically typed language for scripting which can implement complex operations using cmdlets imperatively. The language supports variables, functions, branching (if-then-else), loops (while, do, for, and foreach), structured error/exception handling and closures/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}), known as namespace variable notation, 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.[56]


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

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

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

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

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

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

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

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

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

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.[65] 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.[66]

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

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.[9] The state of the runspace is encased in a SessionState object. When the runspace is created, the PowerShell runtime initializes the instantiation, including initializing the providers and enumerating the cmdlets, and updates the SessionState object accordingly. The Runspace then must be opened for either synchronous processing or asynchronous processing. After that it can be used to execute commands.[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.[9] When a pipeline is created, PowerShell invokes the pipeline processor, which resolves the cmdlets into their respective assemblies (the command processor) and adds a reference to them to the pipeline, and associates them with InputPipe, OutputPipe and ErrorOutputPipe objects, to represent the connection with the pipeline. The types are verified and parameters bound using reflection.[9] 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

[edit]

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

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

[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 for Windows XP SP2, Windows Server 2003 SP1 and Windows Vista[69] and as an optional component of Windows Server 2008.

2.0

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

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

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

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

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

3.0

[edit]

Version 3.0 integrates with Windows 8, Windows Server 2012, Windows 7 with Service Pack 1, Windows Server 2008 with Service Pack 1, and Windows Server 2008 R2 with Service Pack 1.[82][83]

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

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

4.0

[edit]

Version 4.0 integrates with Windows 8.1, Windows Server 2012 R2, Windows 7 SP1, Windows Server 2008 R2 SP1 and Windows Server 2012.[88]

New features include:

  • Desired State Configuration:[89][90][91] 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 session reconnections.
  • -PipelineVariable switch: A new ubiquitous parameter to expose the current pipeline object as a variable for programming purposes
  • Network diagnostics to manage physical and Hyper-V's virtualized network switches
  • Where and ForEach method syntax provides an alternate method of filtering and iterating over objects.

5.0

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

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[93]
  • Extending support for switch management to layer 2 network switches.[94]
  • 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 the Windows 10 Anniversary Update[95] on August 2, 2016, and in Windows Server 2016.[96] 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.[97] 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,[98] and was released on January 19, 2017.[99]

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.[100][101]

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 product cross-platform, independent of Windows, free and open source.[6] It achieved general availability on January 10, 2018, for Windows, macOS and Linux.[102] 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.[103]

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.[104] PowerShell 6 changed to UTF-8 as default encoding, with some exceptions.[105] (version 7.4 changes more to UTF-8)[106]

6.1
[edit]

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

6.2
[edit]

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

PowerShell

[edit]

7.0

[edit]

Renamed to simply PowerShell, version 7 replaces the previous product lines: PowerShell Core and Windows PowerShell.[111][109] 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.[112]

New features include:[113]

  • The -Parallel switch for the ForEach-Object cmdlet to help handle parallel processing
  • A new error view
  • The Get-Error cmdlet
  • Pipeline chaining operators (&& and ||) that allow conditional execution of the next cmdlet in the pipeline
  • The ?: operator for ternary operation
  • The ?? operator for null coalescing
  • The ??= operator for null coalescing assignment
  • Cross-platform Invoke-DscResource (experimental)
  • Return of the Out-GridView cmdlet
  • Return of the -ShowWindow switch for the Get-Help
7.2
[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 the Microsoft Update service; this feature has been missing from versions 6.0 through 7.1.[114]

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

7.4
[edit]

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

Changes include:[117]

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.[118] 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,[119] 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[120] was released on January 15, 2025.

Changes include: TBD[121]

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
Cmdlet Predefined
alias
Command Prompt
command
Unix shell
command
Functionality
Clear-Host[a] cls, clear cls clear Clears the screen
Copy-Item cpi, copy, cp copy cp Copies files and folders
Get-ChildItem gci, dir, ls[b] dir ls Lists files and folders
Get-Command gcm help, where type, which, compgen Lists available commands and gets command path
Get-Content gc, type, cat type cat Reports the content of a file
Get-Date date + time date Reports date and time
Get-Help help, man[c] help apropos, man Reports a command's documentation
Get-History ghy, h, history DOSKEY /HISTORY fc -l, history[d] Lists previous commands
Get-Location gl, pwd cd pwd Reports the working directory
Get-Process gps, ps tlist,[e] tasklist[f] ps Reports running processes
Invoke-WebRequest iwr, curl, wget[g] curl[122] wget, curl Downloads contents from the Internet
Measure-Object measure wc (Unix) Counts characters, words and lines of text. Powershell adds summaries of numeric properties of objects
Move-Item mi, move, mv move mv Moves files and folders
Pop-Location popd popd popd Reverts the working directory to the path last pushed
Push-Location pushd pushd pushd Pushes the working directory path and changes the working directory
Read-Host set /P read Reads input into a variable from the command line
Remove-Item ri, del, erase, rmdir, rd, rm del, erase, rmdir, rd rm, rmdir Deletes files or folders
Rename-Item rni, ren ren, rename mv Renames a file or folder
Register-ScheduledJob at, schtasks[123] at, cron Schedule tasks to be run at a different time
Select-String sls find, findstr grep Reports lines of a file that match a pattern
Set-Date date + time date -s Resets the date and time
Set-Location sl, cd, chdir cd, chdir cd Changes the working path
Set-Variable sv, set set env, export, set, setenv Creates or alters the contents of an environment variable
Sort-Object sort sort sort Sorts lines of text; cmdlet also sorts objects
Stop-Process spps, kill kill,[e] taskkill[f] kill[h] Stops a running process
Tee-Object tee tee Pipes input to a file or variable, passing the input along the pipeline
Test-Connection ping ping ping Sends ICMP echo requests to a remote machine
Write-Output echo, write echo echo Writes text to standard 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 and history is not. However most Unix implementations also define history.
  5. ^ a b Available in Windows NT 4, Windows 98 Resource Kit, Windows 2000 Support Tools
  6. ^ a b Introduced in Windows XP Professional Edition
  7. ^ curl and wget are absent from PowerShell Core, so as to not interfere with similarly named native commands
  8. ^ Also used in UNIX to send a process any signal, the "Terminate" signal is merely the default

Filename extensions

[edit]
Extension Description
.ps1 Script file[124]
.psd1 Module's manifest file; usually comes with a script module or binary module[125]
.psm1 Script module file[126]
.ps1xml Format and type definitions file[54][127]
.psc1 Console file[128]
.pssc Session configuration file[129]
.psrc Role Capability file[130]

Application support

[edit]
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[131] 08.02.0012 47 No No
Microsoft PowerTools for Open XML[132] 1.0 33 No No
IBM WebSphere MQ[133] 6.0.2.2 44 No No
IoT Core Add-ons[134] 74 Un-known Un-known
Quest Management Shell for Active Directory[135] 1.7 95 No No
Special Operations Software Specops Command[136] 1.0 Yes No Yes
VMware vSphere PowerCLI[137] 6.5 R1 500+ Yes Yes
Internet Information Services[138] 7.0 54 Yes No
Windows 7 Troubleshooting Center[139] 6.1 Yes No Yes
Microsoft Deployment Toolkit[140] 2010 Yes Yes Yes
NetApp PowerShell Toolkit[141][142] 4.2 2000+ Yes Yes
JAMS Scheduler – Job Access & Management System[143] 5.0 52 Yes Yes
UIAutomation[144] 0.8 432 No No
Dell Equallogic[145] 3.5 55 No No
LOGINventory[146] 5.8 Yes Yes Yes
SePSX[147] 0.4.1 39 No No

See also

[edit]

References

[edit]
  1. ^ "PowerShell". Microsoft Apps. Retrieved June 25, 2025.
  2. ^ "v7.5.2 Release of PowerShell". GitHub. June 24, 2025. Retrieved June 25, 2025.
  3. ^ "v7.6.0-preview.4 Release of PowerShell". GitHub. April 8, 2025. Retrieved June 25, 2025.
  4. ^ "PowerShell for every system!". June 12, 2017 – via GitHub.com.
  5. ^ Snover, Jeffrey (May 25, 2008). "PowerShell and WPF: WTF". Windows PowerShell Blog. Microsoft.
  6. ^ a b c d Bright, 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. Retrieved May 12, 2020.
  7. ^ "Announcing Windows 10 Insider Preview Build 14971 for PC". November 17, 2016.
  8. ^ "PowerShell is replacing Command Prompt".
  9. ^ a b c d e "powershell". Retrieved March 13, 2023.
  10. ^ Truher, Jim (December 2007). "Extend Windows PowerShell With Custom Commands". MSDN Magazine. Microsoft. Archived from the 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. Retrieved May 12, 2020.
  12. ^ 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.
  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. Retrieved April 2, 2021.
  16. ^ Biggar and Harbaugh (September 14, 2017). "The Man Behind Windows PowerShell". To Be Continuous (Podcast). Heavybit. Retrieved September 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 from the original on October 13, 2013.
  20. ^ Posey, Brien (October 6, 2009). "10 reasons why you should learn to use PowerShell". TechRepublic. Retrieved April 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. Retrieved August 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. ^ a b "PowerShell on Nano Server". TechNet. Microsoft. October 20, 2016.
  27. ^ "Pash". SourceForge. Dice Holdings, Inc. Retrieved September 27, 2011.
  28. ^ "Pash Project". GitHub. Retrieved April 10, 2013.
  29. ^ "Pash is now obsolete · Issue #429 · Pash-Project/Pash". GitHub. Retrieved November 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. Retrieved July 22, 2016. The core PowerShell language is based on the POSIX 1003.2 grammar for the Korn 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. Retrieved December 5, 2021.
  35. ^ "Windows PowerShell Extended Type System". Retrieved November 28, 2007.
  36. ^ a b c "Windows PowerShell Cmdlets". Retrieved November 28, 2007.
  37. ^ "Creating Your First Cmdlet". Retrieved November 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". Retrieved November 28, 2007.
  41. ^ "Adding parameters That Process Pipeline Input". Retrieved November 28, 2007.
  42. ^ "Windows PowerShell Providers". Retrieved October 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. Retrieved September 27, 2011.
  48. ^ Jones, Don (2008). "Windows PowerShell – Rethinking the Pipeline". Microsoft TechNet. Microsoft. Retrieved November 28, 2007.
  49. ^ "Windows PowerShell Object Concepts". Archived from the original on August 19, 2007. Retrieved November 28, 2007.
  50. ^ "How PowerShell Formatting and Outputting REALLY works". Retrieved November 28, 2007.
  51. ^ "More – How does PowerShell formatting really work?". Retrieved November 28, 2007.
  52. ^ "about_Pipelines". TechNet. Microsoft. May 8, 2014.
  53. ^ "about_Objects". TechNet. Microsoft. May 8, 2014.
  54. ^ a b "about_Format.ps1xml". TechNet. Microsoft. May 8, 2014.
  55. ^ "Anonymous Functions and Code Blocks in PowerShell". Retrieved January 21, 2012.
  56. ^ Payette, Bruce (2007). Windows PowerShell in Action. Manning. p. 144. ISBN 978-1-932394-90-0.
  57. ^ "Introduction to Windows PowerShell's Variables". Retrieved November 28, 2007.
  58. ^ "Byte Conversion". Windows PowerShell Tip of the Week. October 22, 2009. Retrieved November 15, 2013.
  59. ^ Ravikanth (May 20, 2013). "Converting to size units (KB, MB, GB, TB, and PB) without using PowerShell multipliers". PowerShell Magazine.
  60. ^ a b c "about_Functions". Microsoft TechNet. Microsoft. October 17, 2013. Retrieved November 15, 2013.
  61. ^ a b "Lightweight Testing with Windows PowerShell". Retrieved November 28, 2007.
  62. ^ Angelopoulos, Alex; Karen, Bemowski (December 4, 2007). "PowerShell Got Smart About Smart Quotes". Windows IT Pro. Penton Media. Retrieved November 15, 2013.
  63. ^ "About Special Characters". Powershell / Scripting. Microsoft. June 8, 2017. Retrieved June 20, 2019.
  64. ^ "Trap [Exception] { "In PowerShell" }". Retrieved November 28, 2007.
  65. ^ "Running Windows PowerShell Scripts". Microsoft. Retrieved November 28, 2007.
  66. ^ "about_Signing". Microsoft TechNet. Microsoft. October 17, 2013. Retrieved November 15, 2013.
  67. ^ Lee Holmes (September 2006). Windows PowerShell Quick Reference. O'Reilly Media.
  68. ^ eslesar (May 23, 2023). "Windows PowerShell Desired State Configuration Overview". msdn.microsoft.com.
  69. ^ Chung, Leonard; Snover, Jeffrey; Kumaravel, Arul (November 14, 2006). "It's a Wrap! Windows PowerShell 1.0 Released!". Windows PowerShell Blog. Microsoft.
  70. ^ "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.
  71. ^ "Windows Management Framework is here!". October 27, 2009. Retrieved October 30, 2009.
  72. ^ "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.
  73. ^ "574 Reasons Why We Are So Proud and Optimistic About W7 and WS08R2". Windows PowerShell Blog. Microsoft. October 29, 2008. Retrieved September 27, 2011.
  74. ^ Snover, Jeffrey (2008). "PowerShell: Creating Manageable Web Services". Archived from the original on October 13, 2008. Retrieved July 19, 2015.
  75. ^ "What's New in CTP of PowerShell 2.0". Retrieved November 28, 2007.
  76. ^ "Windows PowerShell V2 Community Technology Preview 2 (CTP2) – releaseNotes". Microsoft. Archived from the original on May 6, 2008. Retrieved May 5, 2008.
  77. ^ "Differences between PowerShell 1.0 and PowerShell 2.0". Archived from the original on September 17, 2010. Retrieved June 26, 2010.
  78. ^ Jones, Don (May 2010). "Windows PowerShell: Writing Cmdlets in Script". TechNet Magazine. Microsoft.
  79. ^ "GoGrid Snap-in – Managing Cloud Services with PowerShell". Windows PowerShell Blog. Microsoft. October 14, 2008. Retrieved September 27, 2011.
  80. ^ "Emit-XML". Windows PowerShell Blog. Microsoft. October 17, 2008. Retrieved September 27, 2011.
  81. ^ "Block Comments in V2". Windows PowerShell Blog. Microsoft. June 14, 2008. Retrieved September 27, 2011.
  82. ^ Lee, Thomas (August 13, 2012). "PowerShell Version 3 is RTM!". Under The Stairs. Retrieved August 13, 2012.
  83. ^ a b c "Windows Management Framework 3.0". Download Center. Microsoft. September 4, 2012. Retrieved November 8, 2012.
  84. ^ "Windows Management Framework 3.0 Community Technology Preview (CTP) #2 Available for Download". Windows PowerShell Blog. Microsoft. December 2, 2011.
  85. ^ "Windows Management Framework 3.0". Download Center. Microsoft. December 3, 2012.
  86. ^ Jofre, JuanPablo (December 14, 2016). "Windows PowerShell System Requirements". Microsoft Developer Network. Microsoft. Retrieved April 20, 2017.
  87. ^ Honeycutt, Jerry (2012). Woolley, Valerie (ed.). Introducing Windows 8: An Overview for IT Professionals. Redmond, WA: Microsoft Press. ISBN 978-0-7356-7050-1.
  88. ^ "Windows Management Framework 4.0 is now available". Microsoft. October 24, 2013. Retrieved November 4, 2013.
  89. ^ Levy, Shay (June 25, 2013). "New Features in Windows PowerShell 4.0". PowerShell Magazine. Retrieved June 26, 2013.
  90. ^ "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.
  91. ^ Hall, Adrian (June 7, 2013). "Thoughts from Microsoft TechEd North America". Blogs: Tips & Tricks. Splunk. Retrieved June 26, 2013.
  92. ^ "Windows Management Framework (WMF) 5.0 RTM packages has been republished". Windows PowerShell Blog. Microsoft. February 24, 2016.
  93. ^ "Q and A". GitHub. Retrieved April 21, 2015.
  94. ^ 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.
  95. ^ says, Jaap Brasser (August 2, 2016). "#PSTip New PowerShell Commands in Windows 10 Anniversary Update".
  96. ^ "What's New In Windows Server 2016 Standard Edition Part 9 – Management And Automation". September 4, 2016.
  97. ^ "Microsoft.PowerShell.LocalAccounts Module". technet.microsoft.com. June 16, 2016.
  98. ^ "Announcing Windows Management Framework (WMF) 5.1 Preview". July 16, 2016.
  99. ^ "WMF 5.1". Microsoft Download Center.
  100. ^ "What is Windows PowerShell? - PowerShell". Microsoft Learn. March 7, 2024. Retrieved August 19, 2024.
  101. ^ "Migrating from Windows PowerShell 5.1 to PowerShell 7 - PowerShell". Microsoft Learn. April 2, 2024. Retrieved August 19, 2024.
  102. ^ 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.
  103. ^ Aiello, Joey; Wheeler, Sean (January 10, 2018). "PowerShell Core Support Lifecycle". Microsoft Docs. Microsoft. Archived from the original on November 16, 2018. Retrieved January 11, 2018.
  104. ^ Calvo, Angel (January 11, 2018). "Top 10 most exciting reasons to migrate". PowerShell AMA. Microsoft.
  105. ^ sdwheeler (August 3, 2023). "What's New in PowerShell Core 6.0". learn.microsoft.com. Retrieved December 11, 2023. Default encoding is UTF-8 without a BOM except for New-ModuleManifest
  106. ^ "Understanding file encoding in VS Code and PowerShell - PowerShell". learn.microsoft.com. November 29, 2023. Retrieved December 11, 2023.
  107. ^ Aiello, Joey (September 13, 2018). "Announcing PowerShell Core 6.1". devblogs.microsoft.com. Microsoft. Retrieved June 1, 2019.
  108. ^ "PowerShell/PowerShell". GitHub. Retrieved June 22, 2020.
  109. ^ a b c Lee, Steve (April 5, 2019). "The Next Release of PowerShell – PowerShell 7". Microsoft. Retrieved June 1, 2019.
  110. ^ Lee, Steve (March 28, 2019). "General Availability of PowerShell Core 6.2". devblogs.microsoft.com. Microsoft. Retrieved June 1, 2019.
  111. ^ Mackie, Kurt (May 30, 2019). "Microsoft Releases PowerShell 7 Preview". 1105 Media Inc. Retrieved June 1, 2019.
  112. ^ Lee, Steve (May 30, 2019). "PowerShell 7 Road Map". devblogs.microsoft.com. Microsoft. Retrieved August 12, 2020.
  113. ^ "PowerShell 7 Preview 5 | PowerShell". October 23, 2019. Archived from the original on February 15, 2020. Retrieved March 5, 2020.
  114. ^ "PowerShell 7.2 is the new version of Microsoft's next-generation shell". itsfoss.net. November 12, 2021.
  115. ^ "Release v7.3.0 Release of PowerShell · PowerShell/PowerShell". GitHub. Archived from the original on November 9, 2022. Retrieved March 7, 2022.
  116. ^ "Release v7.4.7 Release of PowerShell · PowerShell/PowerShell". GitHub. Retrieved January 27, 2025.
  117. ^ sdwheeler (January 23, 2025). "What's New in PowerShell 7.4 - PowerShell". learn.microsoft.com. Retrieved January 27, 2025.
  118. ^ sdwheeler (January 23, 2025). "What's New in PowerShell 7.5 - PowerShell". learn.microsoft.com. Retrieved January 27, 2025.
  119. ^ "Release v7.5.0 Release of PowerShell · PowerShell/PowerShell". GitHub. Retrieved January 27, 2025.
  120. ^ "Release v7.6.0-preview.2 Release of PowerShell · PowerShell/PowerShell". GitHub. Retrieved January 27, 2025.
  121. ^ sdwheeler (January 17, 2025). "What's New in PowerShell 7.6 - PowerShell". learn.microsoft.com. Retrieved January 27, 2025.
  122. ^ "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.
  123. ^ "Schtasks.exe". March 12, 2023. Retrieved May 25, 2025.
  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. Retrieved March 7, 2008.
  132. ^ "PowerTools for Open XML". Retrieved June 20, 2008.
  133. ^ "MO74: WebSphere MQ – Windows PowerShell Library". Retrieved December 5, 2007.
  134. ^ "IoT Core Add-ons command-line options". October 15, 2018. Retrieved June 13, 2020.
  135. ^ "PowerShell Commands for Active Directory by Quest Software". Retrieved July 2, 2008.
  136. ^ "PowerShell Remoting through Group Policy". Retrieved December 7, 2007.
  137. ^ "VMware vSphere PowerCLI". Archived from the original on December 30, 2014. Retrieved September 9, 2014.
  138. ^ "IIS7 PowerShell Provider Tech Preview 2". Windows PowerShell blog. Archived from the original on February 4, 2010. Retrieved July 3, 2008.
  139. ^ "Kudos to the Win7 Diagnostics Team". Retrieved June 15, 2009.
  140. ^ Michael, Niehaus (July 10, 2009). "MDT 2010 New Feature #16: PowerShell support". Retrieved October 27, 2014.
  141. ^ "Kudos to NetApp for Data ONTAP PowerShell ToolKit". Retrieved June 15, 2010.
  142. ^ "PowerShell Toolkit 4.2 Announcement". June 23, 2016. Retrieved September 7, 2016.
  143. ^ "Heterogeneous Job Scheduling With PowerShell". Retrieved September 15, 2010.
  144. ^ "UIAutomation PowerShell Extensions". Archived from the original on August 17, 2016. Retrieved February 16, 2012.
  145. ^ "EqualLogic HIT-ME with PowerShell". Retrieved March 9, 2012.
  146. ^ de:LOGINventory
  147. ^ "Selenium PowerShell eXtensions". Archived from the original on January 19, 2013. Retrieved August 20, 2012.

Further reading

[edit]
[edit]
咖啡加什么最好喝 吃茄子有什么坏处 月经量少吃什么调理最好方法 月经提前10天正常吗是什么原因 舌苔又白又厚是什么原因
什么是高脂血症 塬字五行属什么 linen是什么面料成分 戍怎么读音是什么 霉菌性阴道炎用什么药好
喝黑豆浆有什么好处 梦见四条蛇是什么意思 幽门螺旋杆菌吃什么药最好 做人流挂什么科 颈椎间盘突出有什么症状
烫伤起水泡涂什么药膏 胃寒可以吃什么水果 做梦梦到自己怀孕了是什么意思 大象的耳朵有什么作用 抽烟有什么危害
磨牙齿是什么原因hcv8jop2ns9r.cn 铁饱和度低什么原因hcv9jop1ns7r.cn 为什么感冒吃冰棒反而好了hcv8jop3ns6r.cn 秦始皇的原名叫什么zhiyanzhang.com 15年婚姻是什么婚hcv8jop7ns9r.cn
有什么工作kuyehao.com 蒲公英泡水喝有什么用hcv8jop5ns8r.cn 另起炉灶是什么意思hcv9jop8ns2r.cn 无大碍是什么意思hcv8jop5ns4r.cn 乳房有溢液是什么原因dayuxmw.com
打耳洞后不能吃什么hcv9jop6ns0r.cn 梦见自己尿裤子了是什么意思hcv8jop3ns0r.cn 支气管炎吃什么好hcv8jop3ns5r.cn 云肖是什么生肖hcv8jop4ns2r.cn 治疗胃反酸烧心用什么药最好hcv9jop0ns4r.cn
一什么虫子hcv8jop8ns5r.cn 12月29号是什么星座adwl56.com 芒硝是什么东西hcv8jop7ns8r.cn 除夕是什么意思hcv8jop9ns5r.cn 老九门2什么时候上映qingzhougame.com
百度