Windows Powershell 介紹和安裝_PowerShell

來源:互聯網
上載者:User

Powershell 是運行在windows機器上實現系統和應用程式管理自動化的命令列指令碼環境。你可以把它看成是命令列提示符cmd.exe的擴充,不對,應當是顛覆。 powershell需要.NET環境的支援,同時支援.NET對象。微軟之所以將Powershell 定位為Power,並不是誇大其詞,因為它完全支援對象。其可讀性,易用性,可以位居當前所有shell之首。 當前powershell有四版本,分別為1.0,2.0,3.0 ,4.0

如果您的系統是window7或者Windows Server 2008,那麼PowerShell 2.0已經內建了,可以升級為3.0,4.0。
如果您的系統是Windows 8 或者Windows server 2012,那麼PowerShell 3.0已經內建了,可以升級為4.0。
如果您的系統為Windows 8.1或者Windows server 2012 R2,那預設已經是4.0了。

Powershell 1.0 下載地址

Powershell 2.0 下載地址

powershell3.0

介紹

Powershell 3.0將會內建在Windows 8 client 和windows server 2012.

如果擷取Powershell3.0呢?

內建:一旦裝上了windows 8 client 或者 windows 2012 server 預設的Powershell版本就是Powershell 3.0 。如果你想使用Powershell2.0 需要重新下載。
下載:如果你的機器是 windows server 2008 或者 windows server 2008 R2,再或者是win7,也可以下載Powershell 3.0.,不過Powershell 3.0 需要 .NET 4.0的支援。

Powershell 3.0 將會作為Windows Management Framework 3.0的一部分。

這裡列出一些Powershell 3.0 的新特性

Powershell 工作流程
增強會話災難恢複
文法簡潔方便
增強了cmdlet的尋找和自動匯入模組的功能
提供了對webservice強大支援
ISE命令附加元件

下載

powershell4.0

介紹

Windows Management Framework 4.0 安裝包,現在支援下載和安裝了。WMF4.0 可以讓你在許多微軟舊版本的作業系統上,利用Windows8.1和Windows Server 2012 R2中的管理技術。正式版與之前的預覽版相比,包含了許多改進,客戶在安裝和使用之前,請確保仔細閱讀了這篇文章,特別是WMF4.0與一些舊版本的Windows 伺服器產品不相容。

Windows Management Framework 4.0 預覽版是今年7月份公布的,當時我們非常興奮更夠在社區中討論它的用武之地,那現在,它只會變得更好。

WMF4.0可以安裝在Windows 7 SP1,Windows Server 2008 R2 SP1, Windows Server 2012 和 Windows CE7上。需要注意的是,WMF4.0 無法安裝到Windows 8上,但是你可以通過Windows Update來擷取Windows 8.1的免費更新,該更新包含了WMF4.0。對於WMF4.0來說,NET4.5是一個額外的先決條件,請確保在安裝WMF4.0之前,您的機器上已經安裝了.NET4.5,否則會議靜默的方式顯示安裝失敗。

WMF 4.0 包含以下功能的更新版本:

Windows PowerShell
Windows PowerShell Integrated Scripting Environment (ISE)
Windows PowerShell Web Services (Management OData IIS Extension)
Windows Remote Management (WinRM)
Windows Management Infrastructure (WMI)
另外在 WMF 4.0我們還增加了一個令人振奮的新功能:

Windows PowerShell Desired State Configuration (DSC)
要使用此更新的管理基礎設施來管理Windows 7 SP1,Windows CE7,Windows Server 2008 R2 SP1,和 Windows Server 2012,WMF4.o 必須安裝在以前發布過的作業系統中。

連同每個作業系統的軟體包,我們提供了一組版本資訊和一些額外的DSC快速參考。它們包含了許多很有用的資訊,比如一些已知問題,和它們的變通方法,還有一些與其他應用程式的相容問題。所以鼓勵大家下載並閱讀。

在安裝了WMF4.0 之後,要將作業系統更新,例如:從Windows7升級到Windows8,或者從Windows Server 2012升級到Windows Server 2012 R2.這些升級的方案都可能會碰到一些已經記載在版本資訊中的已知問題。對您的作業系統進行升級前,請務必閱讀升級版本資訊,並準備執行一些額外的步驟,或者卸載WMF4.0。

同樣WMF4.0 不支援從之前發布的預覽版升級到現在的正式版,如果你的機器中已經包含了預覽版,請卸載後重新安裝WMF4.0正式版。

注意: 並不是所有的Microsoft伺服器應用程式目前與WMF4.0相容。所以安裝WMF4.0前,請務必閱讀WMF4.0的版本說明。具體來說下面的伺服器應用程式暫時不相容WMF4.0。

System Center 2012 Configuration Manager (not including SP1)
System Center Virtual Machine Manager 2008 R2 (including SP1)
Microsoft Exchange Server 2013, Microsoft Exchange Server 2010 and Microsoft Exchange Server 2007
Microsoft SharePoint 2013 and Microsoft SharePoint 2010
Windows Small Business Server 2011Standard
我們承認,仍然有一些管理Windows Server 2008的需求, Windows Management Framework 3.0  (WMF3.0)仍然適用 Windows Server 2008.

下載

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.