Microsoft Wiki

Be sure to join our wiki's Discord server by clicking here
Also follow our wiki's Twitter by clicking here

READ MORE

Microsoft Wiki
Register
Advertisement

PowerShell or Microsoft PowerShell (formerly Windows PowerShell) is a task automation and configuration management program from Microsoft, consisting of a command-line shell and the associated scripting language. Initially a Windows-only component, known as Windows PowerShell, it was made open-source and cross-platform on 18 August 2016 with the introduction of PowerShell Core.[1] The former is built on the .NET Framework, the latter on .NET Core. The name Windows PowerShell is still present on the latest versions of Windows 10 and 11, but the latest versions are referred to as PowerShell or Microsoft PowerShell.

In PowerShell, administrative tasks are generally performed by 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 registry, which are made available to PowerShell via providers. Third-party developers can add cmdlets and providers to PowerShell.[2][3] Cmdlets may be used by scripts, which may in turn be packaged into modules.

History[]

Background[]

Every version of Microsoft Windows for personal computers has included a command line interpreter (CLI) for managing the operating system. Its predecessor, MS-DOS, relied exclusively on a CLI. These are COMMAND.COM in MS-DOS and Windows 9x, and cmd.exe in the Windows NT family of operating systems. Both support a few basic internal commands. For other purposes, a separate console application must be written. They also include a basic scripting language (batch files), which can be used to automate various tasks. However, they cannot be used to automate all facets of graphical user interface (GUI) functionality, in part because command-line equivalents of operations are limited, and the scripting language is elementary. In Windows Server 2003, the situation was improved, but scripting support was still unsatisfactory.[4]

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

Kermit[]

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

Monad[]

By 2002, Microsoft had started to develop a new approach to command-line management, including a CLI called Monad (also known as Microsoft Shell or MSH). The ideas behind it were published in August 2002 in a white paper called the "Monad Manifesto" by its chief architect, Jeffrey Snover.[6] In a 2017 interview, Snover explains the genesis of PowerShell, saying that he had been trying to make Unix tools available on Windows, which didn't work due to "core architectural difference[s] between Windows and Linux". Specifically, he noted that Linux considers everything an ASCII text file, whereas Windows considers everything an "API that returns structured data". They were fundamentally incompatible, which led him to take a different approach.[7]

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

PowerShell[]

On 25 April 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.[8] 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 26 September 2006, with final release to the web on 14 November 2006. PowerShell for earlier versions of Windows was released on 30 January 2007.[9] 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.[10] 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".[11]

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

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

References[]

  1. 1.0 1.1 {{cite web|title=PowerShell is Microsoft's latest open source release, coming to Linux, OS X|url=https://arstechnica.com/information-technology/2016/08/powershell-is-microsofts-latest-open-source-release-coming-to-linux-os-x/%7Clast1=Bright%7Cfirst1=Peter%7Cdate=2016-08-18%7Cwebsite=Wikipedia:Ars Technica|Ars Technica]]]]
  2. "How Windows PowerShell works". Microsoft. Retrieved 2007-11-27. 
  3. Truher, Jim (December 2007). "Extend Windows PowerShell With Custom Commands". Microsoft. 
  4. Dragan, Richard V. (April 23, 2003). "Windows Server 2003 Delivers Improvements All Around". Ziff Davis. "A standout feature here is that virtually all admin utilities now work from the command line (and most are available through telnet)." 
  5. Jones, Don (2020). Shell of an Idea: The Untold History of PowerShell. p. 25. ISBN 978-1-9536450-3-6. 
  6. Jeffrey P. Snover (8 August 2002). "Monad Manifesto". Windows PowerShell Blog (Microsoft). 
  7. "The Man Behind Windows PowerShell". Heavybit. 2017-09-14. Retrieved 2017-09-14. 
  8. "Windows PowerShell (Monad) Has Arrived". Microsoft. April 25, 2006. 
  9. Snover, Jeffrey (November 15, 2006). "Windows PowerShell & Windows Vista" (blog posting). Microsoft. 
  10. "Windows Management Framework (Windows PowerShell 2.0, WinRM 2.0, and BITS 4.0)". Microsoft. September 30, 2013. 
  11. Posey, Brien (6 October 2009). "10 reasons why you should learn to use PowerShell". TechRepublic. 
  12. "What is Pester and Why Should I Care?". 14 December 2015. 
  13. Snover, Jeffrey (18 August 2016). "PowerShell is open sourced and is available on Linux". Microsoft. 
  14. "PowerShell/PowerShell". Retrieved 2016-08-18. 
  15. Hansen, Kenneth; Calvo, Angel (August 18, 2016). "PowerShell on Linux and Open Source!". Microsoft. 
  16. Mary Jo Foley (August 18, 2016). "Microsoft open sources PowerShell; brings it to Linux and Mac OS X". ZDNet. CBS Interactive. 
  17. "PowerShell on Nano Server". Microsoft. 20 October 2016. 

External links[]

Smallwikipedialogo
Wikipedia (article: PowerShell )
This page uses Creative Commons Licensed content from Wikipedia (view authors).
Advertisement