Windows PowerShell 的基本知識

來源:互聯網
上載者:User

下載:

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_*

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.