2002年Microsoft開始開發一種管理命令行的新方法。 它還包括開發名為Monad的新Shell。 2002年發佈的白皮書叫做Monad Manifesto。 它包含此Shell的概念以及創建標準化平臺的想法,該標準化平臺通過自動化任務使用.NET框架。
Monad的首次展示是在2003年美國專業開發人員大會上在洛杉磯進行的。Microsoft在2005年6月17日,2005年9月11日和2006年1月10日發佈了Monad的三個beta版本。Microsoft將Monad重命名為 Windows PowerShell在同年2006年4月發佈,並使其成為Windows操作系統的核心部分。
Windows PowerShell版本
1. PowerShell 1.0
2006年11月,Microsoft針對Windows Vista,Windows XP SP2和Windows Server 2003 SP1發佈了PowerShell版本1.0。 此版本是Windows Server 2008的可選組件。
2. PowerShell 2.0
PowerShell版本2.0與Windows Server 2008 R2和Windows 7集成在一起。它是針對Windows Vista Service Pack 1,Windows Server 2003 Service Pack 2和Windows XP Service Pack 3發行的。
此版本包括對託管API和腳本語言的更改。
以下是PowerShell 2.0的新功能:
- PowerShell遠程處理。
- 後臺工作。
- 可步進管道。
- 腳本調試。
- Windows PowerShell ISE(集成腳本環境)。
- 網路檔傳輸。
3. PowerShell 3.0
PowerShell版本3.0與Windows Server 2012和Windows 8集成在一起。
Microsoft還使其適用於帶Service Pack 1的Windows Server 2008,帶Service Pack 1的Windows 7和帶Service Pack1的Windows Server 2008 R2。
此版本是(WMF3)Windows Management Framework程式包的內部部分,該程式包包含支持遠程處理的WinRM服務。
以下是PowerShell 3.0的新功能:
- 預定作業。
- 會話連接。
- 代表團支持。
- 自動模組檢測。
- 改進的代碼編寫。
- 幫助更新。
- 新命令。
4. PowerShell 4.0
PowerShell版本4.0與Windows Server 2012 R2和Windows 8.1集成在一起。
Microsoft還使其可用於Windows Server 2008 R2 SP1,Windows 7 SP1和Windows Server 2012。
以下是PowerShell 4.0的新功能:
- 所需狀態配置(DSC)。
- 新的默認執行策略。
- 保存幫助。
- 增強調試。
- 網路診斷。
5. PowerShell 5.0
此版本已作為Windows管理框架(WMF 5.0)的內部部分於2016年2月24日發佈到Web上。
默認情況下,此版本安裝在Windows 10和Windows Server 2012上。
以下是PowerShell 5.0的新功能:
- PowerShell .NET枚舉。
- DSC部分配置。
- 調試PowerShell後臺作業。
- 在遠程進程中調試PowerShell Runspace。
- PowerShell類定義(屬性,方法)。
6. PowerShell 5.1
PowerShell 5.1與Windows 10 Anniversary更新一起於2016年8月2日發佈。 該版本最終於2017年1月19日發佈。Microsoft已使其可用於Windows 7,Windows Server 2008,Windows Server 2008 R2,Windows 7,Windows Server 2012和Windows Server 2012 R2。