下載:
Windows PowerShell 2.0 For Windows XP Service Pack 3
說明:Windows Management Framework Core 程式包提供了適用於 IT 專業人員的已更新管理功能。本程式包包括以下組件:Windows PowerShell 2.0 和 Windows Remote Management (WinRM) 2.0
中文:
http://www.microsoft.com/downloads/details.aspx?displaylang=zh-cn&FamilyID=60cb5b6c-6532-45e0-ab0f-a94ae9ababf5
即補丁:Windows XP 更新程式 (KB968930)
啟動:
從命令提示字元 (cmd.exe) 視窗啟動 Windows PowerShell,請在命令提示字元下鍵入:
Powershell
Windows PowerShell 的基本知識
首先介紹 Get-Help cmdlet,該 cmdlet 顯示有關 Windows PowerShell 中 cmdlet 和概念性主題的資訊。然後,介紹幾個基本的 cmdlet,說明如何使用 cmdlet 參數,然後說明如何設定 cmdlet 輸出的格式以擷取有用顯示中所需的資料。最後的主題說明如何使用別名以便更容易地使用 Windows PowerShell,如何在 Windows PowerShell 中運行傳統的 Windows 程式,以及如何管理錯誤。
Get-Help cmdlet 是用於瞭解 Windows PowerShell 的有用工具。通過閱讀 cmdlet 的說明、瞭解有關概念並瀏覽語言主題,您可以開始瞭解如何使用 Windows PowerShell 了。
要顯示有關 Windows PowerShell 中協助系統的資訊,請鍵入:
Get-Help
要擷取 Get-Command cmdlet 的詳細協助,請鍵入:
get-help get-command –detailed
要擷取 Get-Command cmdlet 的完整協助,請鍵入:
get-help get-command -full
要顯示 Get-Command cmdlet 的樣本,請鍵入:
get-help get-command -examples
要查看 Get-Command 的 TotalCount 參數說明,請鍵入:
get-help get-command -parameter totalcount
要查看 Get-Command cmdlet 的所有參數,請鍵入:
get-help get-command -parameter *
要查看“Get”cmdlet 的說明主題列表,請鍵入:
get-help get-*
要擷取有關萬用字元的協助,請鍵入:
get-help about_wildcard
要顯示 Windows PowerShell 中所有概念性說明主題的列表,請鍵入:
get-help about_*