本章節內容包含 Windows PowerShell 中的概念 (「關於」) 說明主題。

主題 描述

about_Aliases

描述 Windows PowerShell 中的 Cmdlet 和命令的替代名稱。

about_Arithmetic_Operators

描述在 Windows PowerShell 中執行算術運算的運算子。

about_Arrays

描述陣列,用於儲存資料元素的壓縮資料結構。

about_Assignment_Operators

描述用於將值指派給變數的運算子。

about_Automatic_Variables

描述自動變數,用於儲存 Windows PowerShell 的狀態資訊。

about_Break

說明如何使用 Break 陳述式,這個陳述式會立即結束 ForeachForWhileDoSwitch 陳述式。

about_Command_Precedence

說明 Windows PowerShell 如何尋找命令。

about_Command_Syntax

說明 Windows PowerShell 中的命令格式。

about_Comment_Based_Help

說明如何撰寫函數和指令碼的註解架構說明主題。

about_Commonparameters

描述可搭配任何 Cmdlet 使用的參數。

about_Comparison_Operators

描述在 Windows PowerShell 中比較值的運算子。

about_Continue

描述 Continue 陳述式,該陳述式會立即返回至程式迴圈的起始處。

about_Core_Commands

列出設計用來搭配 Windows PowerShell 提供者所使用的 Cmdlet。

about_Data_Sections

描述指令碼的 Data 區段,這是設計用來區別資料和程式碼邏輯的。

about_Debuggers

描述 Windows PowerShell 指令碼偵錯工具,這是用於偵錯指令碼和函數的一組 Cmdlet。

about_Do

描述 Do 陳述式,該陳述式會執行一次或多次指令碼區塊,但受限於 While 或 Until 條件。

about_Environment_Variables

說明如何存取 Windows PowerShell 中的 Windows 環境變數。

about_Escape_Characters

介紹 Windows PowerShell 中的逸出字元 (`) 並說明其效果。

about_Eventlogs

描述事件檢視器中的 Windows PowerShell 事件記錄檔。

about_Execution_Policies

描述 Windows PowerShell 執行原則,並說明如何加以管理。

about_For

描述 Windows PowerShell 中的 For 迴圈。

about_Foreach

描述 ForEach 陳述式,這個陳述式會對集合中的每個項目發生作用。

about_Format.ps1xml

描述 Format.ps1xml 檔案,該檔案會定義主控台預設的物件顯示。

about_Functions

說明如何在 Windows PowerShell 中建立和使用函數。

about_Functions_Advanced

進階函數簡介,這些函數的作用如同 Cmdlet。

about_Functions_Advanced_Methods

說明如何在進階函數中使用可供 Cmdlet 使用的方法和屬性 (Property)。

about_Functions_Advanced_Parameters

示範如何宣告進階函數的參數。

about_Functions_Cmdletbindingattribute

描述 CmdletBinding 屬性 (Attribute),該屬性會識別與 Cmdlet 作用類似的函數。

about_Hash_Tables

說明如何在 Windows PowerShell 中建立、使用和排序雜湊表。

about_History

說明如何從命令歷程記錄取得和執行命令。

about_If

描述 If 陳述式,該陳述式會建立動作的條件。

about_Jobs

描述 Windows PowerShell 背景工作。

about_Job_Details

提供背景工作的詳細資訊。

about_Join

描述 Join 運算子,該運算子會將數個字串結合成單一字串。

about_Language_Keywords

描述 Windows PowerShell 指令碼語言中的關鍵字。

about_Line_Editing

描述 Windows PowerShell 主控台的編輯功能。

about_Locations

說明如何在 Windows PowerShell 中使用工作位置。

about_Logical_Operators

描述在 Windows PowerShell 中連接陳述式的運算子。

about_Methods

說明在 Windows PowerShell 中如何使用方法,在物件上執行動作。

about_Modules

說明如何安裝、匯入和使用 Windows PowerShell 模組。

about_Objects

說明如何在 Windows PowerShell 中使用物件。

about_Operators

用於描述 Windows PowerShell 運算子的概觀主題。其中包含每個運算子類型的主題。

about_Parameters

說明如何在 Windows PowerShell 中使用 Cmdlet 參數。

about_Parsing

說明 Windows PowerShell 如何剖析命令。

about_Path_Syntax

描述 Windows PowerShell 中的完整路徑名稱格式和相對路徑名稱格式。

about_Pipelines

說明如何將 Windows PowerShell 中的命令結合成管線。

about_Preference_Variables

描述可以自訂 Windows PowerShell 的喜好設定變數。

about_Profiles

說明如何建立和使用 Windows PowerShell 設定檔。

about_Prompts

說明如何建立和使用 Windows PowerShell 設定檔。

about_Properties

說明如何在 Windows PowerShell 中使用物件屬性。

about_Providers

描述 Windows PowerShell 提供者,並說明如何使用提供者所公開的資料。

about_PSSessions

描述 Windows PowerShell 工作階段 (PSSession),並說明如何使用這些工作階段執行遠端命令。

about_PSSession_Details

提供 Windows PowerShell 工作階段的詳細資訊。

about_Pssnapins

描述 Windows PowerShell 嵌入式管理單元,並說明如何使用它們擴充 Windows PowerShell。

about_Quoting_Rules

說明在 Windows PowerShell 中使用單引號和雙引號的規則,包含 here-string。

about_Redirection

說明如何將輸出重新導向至變數和文字檔。其中包含重新導向運算子。

about_Ref

說明如何建立與使用參考變數類型。

about_Regular_Expressions

說明如何在 Windows PowerShell 中使用規則運算式。

about_Remote

如何在 Windows PowerShell 中執行遠端命令。

about_Remote_FAQ

在 Windows PowerShell 中執行遠端命令的問題與回答。

about_Remote_Jobs

說明如何在遠端電腦執行背景工作。

about_Remote_Output

解譯和格式化遠端命令的輸出。

about_Remote_Requirements

在 Windows PowerShell 中執行遠端命令的系統需求和設定需求。

about_Remote_Troubleshooting

在 Windows PowerShell 中疑難排解遠端作業。

about_Requires

描述 Requires 陳述式,該陳述式會防止指令碼在沒有必要的嵌入式管理單元和版本的情況下執行。

about_Reserved_Words

列出 Windows PowerShell 的保留字。

about_Return

結束目前的範圍 (可能是函數、指令碼或指令碼區塊)。

about_Scopes

說明如何在 Windows PowerShell 中設定與變更函數和變數的範圍。

about_Script_Blocks

說明如何使用指令碼區塊,將運算式、陳述式和命令結合到單一程式碼區塊中。

about_Script_Internationalization

描述可以讓指令碼使用針對 Windows 而選取的語言輕鬆顯示使用者訊息的功能。

about_Scripts

說明如何在 Windows PowerShell 中撰寫和執行指令碼。

about_Session_Configurations

描述工作階段設定,這些設定會決定可以從遠端連線到電腦的使用者,以及他們可以執行的命令。

about_Signing

描述 Windows PowerShell 執行原則、說明如何管理這些原則,以及說明如何簽署指令碼使其符合執行原則。

about_Special_Characters

描述 Windows PowerShell 中的特殊字元。

about_Split

描述 Split 運算子,該運算子會將字串分割為子字串。

about_Switch

說明如何使用 switch 陳述式,取代多個 If 陳述式。

about_Throw

描述 Throw 關鍵字,該關鍵字會產生終止錯誤。

about_Transactions

說明如何管理 Windows PowerShell 的交易作業。

about_Trap

描述 Trap 關鍵字,該關鍵字會處理終止錯誤。

about_Try_Catch_Finally

指令碼中的錯誤處理是使用 Try、Catch 和 Finally 指令碼區塊完成的。

about_Types.ps1xml

描述 Types.ps1xml 檔案,該檔案可以讓您擴充 Windows PowerShell 中所使用物件的 .NET 類型。

about_Type_Operators

描述搭配 .NET 類型使用的運算子。

about_Variables

用於說明 Windows PowerShell 變數類型的概觀主題。

about_While

描述 Windows PowerShell 中的 While 迴圈。

about_Wildcards

說明如何在 Windows PowerShell 中使用萬用字元 (*)。

about_Windows_PowerShell_2.0

描述由 Windows PowerShell 2.0 所引入的功能。

about_Windows_PowerShell_ISE

描述 Windows PowerShell 整合式指令碼環境 (ISE)。

about_WMI_Cmdlets

提供有關 Windows Management Instrumentation (WMI) 和 Windows PowerShell 的背景詳細資訊。

about_WS-Management_Cmdlets

提供 Web Services for Management (WS-Management) 的概觀,做為在 Windows PowerShell 中使用 WS-Management Cmdlet 的背景資訊。

請參閱




目錄