共用方式為


Windows PowerShell 參考

Windows PowerShell 是專為系統管理自動化而設計的Microsoft .NET Framework 連線環境。 Windows PowerShell 提供建置命令、撰寫解決方案,以及建立圖形用戶介面型管理工具的新方法。

Windows PowerShell 可讓系統管理員直接或透過腳本執行命令,自動管理系統資源。

開發人員受眾

Windows PowerShell 軟體開發工具包 (SDK) 是針對需要 Windows PowerShell 所提供 API 參考資訊的命令開發人員所撰寫。 命令開發人員會使用 Windows PowerShell 來建立命令和提供者,以擴充 Windows PowerShell 可執行的工作。

Windows PowerShell 資源

除了 Windows PowerShell SDK 之外,下列資源還提供詳細資訊。

開始使用 Windows PowerShell 提供 Windows PowerShell 的簡介:語言、Cmdlet、提供者,以及物件的使用。

撰寫 Windows PowerShell 模組 提供系統管理員、腳本開發人員和 Cmdlet 開發人員的資訊和範例,這些開發人員需要使用 Windows PowerShell 模組封裝及散發其 Windows PowerShell 解決方案。

撰寫 Windows PowerShell Cmdlet 為正在設計 Cmdlet 的程式經理和正在實作 Cmdlet 程式代碼的開發人員提供資訊和程式代碼範例。

Windows PowerShell 小組部落格 與其他 Windows PowerShell 用戶學習和共同作業的最佳資源。 閱讀 Windows PowerShell 小組部落格,然後加入 Windows PowerShell 用戶論壇(microsoft.public.windows.powershell)。 使用 Windows Live Search 尋找其他 Windows PowerShell 部落格和資源。 然後,當您開發專業知識時,自由貢獻想法。

PowerShell 模組瀏覽器 提供最新版的命令行說明主題。

類別庫

System.Management.Automation 此命名空間是 Windows PowerShell 的根命名空間。 其中包含實作自定義 Cmdlet 所需的類別、列舉和介面。 特別是,System.Management.Automation.Cmdlet 類別是必須衍生所有 Cmdlet 類別的基類。 如需 Cmdlet 的詳細資訊,請參閱。

System.Management.Automation.Provider 此命名空間包含實作 Windows PowerShell 提供者所需的類別、列舉和介面。 特別是,System.Management.Automation.Provider.CmdletProvider 類別是必須衍生所有 Windows PowerShell 提供者類別的基類。

Microsoft.PowerShell.Commands 此命名空間包含 Windows PowerShell 所實作之 Cmdlet 和提供者的類別。 同樣地,建議您建立 YourName。您實作之 Cmdlet 的命令命名空間。

System.Management.Automation.Host 此命名空間包含 Cmdlet 用來定義使用者與 Windows PowerShell 互動的類別、列舉和介面。

System.Management.Automation.Internal 此命名空間包含其他命名空間類別所使用的基類。 例如,System.Management.Automation.Internal.CmdletMetadataAttribute 類別是 System.Management.Automation.CmdletAttribute 類別的基類。

System.Management.Automation.Runspaces 此命名空間包含用來建立 Windows PowerShell Runspace 的類別、列舉和介面。 在此內容中,Windows PowerShell Runspace 是一或多個 Windows PowerShell 管線叫用 Cmdlet 的內容。 也就是說,Cmdlet 可在 Windows PowerShell Runspace 的內容中運作。 如需 Windows PowerShell Runspaces 的詳細資訊,請參閱 Windows PowerShell Runspaces