共用方式為


AppFabric 中的 Windows PowerShell

AppFabric 中的許多管理工作都是透過 Windows PowerShell Cmdlet 來執行。Windows PowerShell 可以跨 AppFabric 的所有元件提供整合式管理介面。除了標準的 Windows PowerShell 基礎結構與 Cmdlet,此介面還包含 AppFabric 專屬的 Cmdlet 與 Cmdlet 架構。當 Windows PowerShell 基礎結構執行 AppFabric Cmdlet 時,系統會提示 AppFabric 執行階段執行管理操作。

AppFabric 提供下列幾種存取 AppFabric Cmdlet 功能的基本方式:

  • **透過 UI。**Windows PowerShell 執行階段已內嵌在 AppFabric 工具內。因此,AppFabric 能以 Windows PowerShell 介面為基礎來提供使用者介面層,讓您可以在 UI 中選取屬性和執行命令來執行 AppFabric Cmdlet。您可以在本機或遠端使用 UI。如需有關遠端案例的詳細資訊,請參閱 AppFabric 遠端管理架構

  • **互動方式。**您可以從本機或遠端在 Windows PowerShell 命令列主控台中執行程式碼,以執行 AppFabric Cmdlet。

  • **指令碼方式。**您可以建立並執行包含一或多個 AppFabric Cmdlet 的指令碼。如需有關指令碼處理的詳細資訊,請參閱 Windows PowerShell 入門指南 (可能為英文網頁) 與使用 Windows PowerShell 來進行指令碼處理 (可能為英文網頁)。

  • **在 C# 內執行。**某些 AppFabric Cmdlet 可從 Managed 程式碼內執行。

AppFabric 管理 UI 讓您不必撰寫 Cmdlet 程式碼,甚至不必知道 Cmdlet 語法或參數,就能執行 AppFabric Cmdlet。但是,在 Windows PowerShell 主控台中執行 Cmdlet 程式碼,讓您在執行 Cmdlet 方面能有更強大的功能且更有彈性。執行指令碼則賦予您以自動化方式執行 Cmdlet 的額外功能。您能在 UI 中執行或以互動方式在 AppFabric Cmdlet 中執行的大部分動作,都能完全以指令碼方式執行。

本節內容

  2012-03-05