1、在安裝前先卸載舊版本的Powershell,簡單copy微軟官方說明:
- In the Windows Control Panel, click Uninstall a Program.
- In Programs and Features, click View installed updates.
- In the Uninstall an update pane, in the Microsoft Windows section, locate the update titled Microsoft Windows Management Framework 3.0 Beta (KB2506143).
- Right-click Microsoft Windows Management Framework 3.0 Beta (KB2506143) and then click Uninstall.
- In the Uninstall an update dialog box, click Yes.
卸載完成后記得重啟計算機
2、從http://www.microsoft.com/en-us/download/details.aspx?id=29939下載PowerShell 3,可選的安裝文件有下面幾個:
根據你的操作系統是32位還是64位選擇一個,比如我的64位系統我選的是第一個。
3、下載完成后雙擊運行,等待安裝完成,然后重啟即可:
4、重啟完成后
所有程序->附件->Windows PowerShell 或者 直接開始->搜索PowerShell
啟動后輸入如下命令,顯示正常即說明安裝成功
5、資源推薦
Microsoft Tech上關於PowerShell的教程
http://technet.microsoft.com/zh-CN/scriptcenter/dd772285.aspx
《Windows Powershell For Developers》
《Microsoft Windows PowerShell 3.0 First Look》
參考自:http://technet.microsoft.com/zh-cn/library/jj205328(v=ocs.15)