共用方式為


關於主題

描述

關於主題涵蓋有關PowerShell的一系列概念。

關於主題

about_Alias_Provider

提供 PowerShell 別名及其代表值的存取權。

about_Aliases

描述如何在PowerShell中使用 Cmdlet 和命令的替代名稱。

about_ANSI_Terminals

描述 Windows PowerShell 中 ANSI 逸出序列可用的支援。

about_Arithmetic_Operators

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

about_Arrays

描述陣列,這是設計用來儲存專案集合的數據結構。

about_Assignment_Operators

描述如何使用運算子將值指派給變數。

about_Automatic_Variables

描述儲存PowerShell狀態資訊的變數。 PowerShell 會建立和維護這些變數。

about_Booleans

描述布爾表達式的評估方式。

about_Break

描述 break 語句,其提供結束目前控件區塊的方式。

about_Built-in_Functions

描述 PowerShell 中的內建函式。

about_Calculated_Properties

PowerShell 可讓您動態新增屬性,並改變對象輸出至管線的格式。

about_Case敏感度

PowerShell 儘可能不區分大小寫,同時保留大小寫。

about_Character_Encoding

描述 PowerShell 如何針對字串數據的輸入和輸出使用字元編碼。

about_CimSession

描述 CimSession 物件,以及 CIM 會話與 PowerShell 會話之間的差異。

about_Classes

描述如何使用類別來建立自己的自定義類型。

about_Classes_Constructors

描述如何定義PowerShell類別的建構函式。

about_Classes_Inheritance

描述如何定義擴充其他類型的類別。

about_Classes_Methods

描述如何定義PowerShell類別的方法。

about_Classes_Properties

描述如何定義 PowerShell 類別的屬性。

about_Command_Precedence

描述 PowerShell 如何決定要執行的命令。

about_Command_Syntax

描述 PowerShell 中使用的語法圖表。

about_Comment_Based_Help

描述如何撰寫函式和腳本的批註型說明主題。

about_CommonParameters

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

about_Comparison_Operators

PowerShell 中的比較運算符可以比較兩個值或篩選集合元素與輸入值。

about_Continue

描述語句如何 continue 立即將程式流程傳回至程序迴圈、 switch 語句或 trap 語句頂端。

about_Core_Commands

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

about_Data_Files

PowerShell 數據檔可用來使用 PowerShell 語法儲存任意數據。

about_Data_Sections

說明數據區段,這些區段會隔離文字字串和其他只讀數據與腳本邏輯。

about_Debuggers

描述 PowerShell 調試程式。

about_DesiredStateConfiguration

提供 PowerShell Desired 狀態設定 (DSC) 功能的簡短簡介。

about_Do

執行語句清單一或多次,受限於 WhileUntil 條件。

about_Enum

語句 enum 是用來宣告列舉。 列舉是一種相異類型,其中包含一組名為 列舉值清單的具名標籤。

about_Environment_Provider

提供 Windows 環境變數的存取權。

about_Environment_Variables

描述如何在PowerShell中存取和管理環境變數。

about_Eventlogs

本文說明 PowerShell 如何將事件記錄至 Windows 事件記錄檔。

about_Execution_Policies

描述 PowerShell 執行原則,並說明如何管理它們。

about_FileSystem_Provider

提供檔案和目錄的存取權。

about_For

描述您可以用來根據條件式測試執行語句的語言命令。

about_Foreach

描述可用來周遊專案集合中所有項目的語言命令。

about_Format.ps1xml

Format.ps1xml PowerShell 中的檔案會定義 PowerShell 控制台中對象的預設顯示。

about_Function_Provider

提供存取 PowerShell 中定義的函式。

about_Functions_Advanced_Methods

描述指定屬性的 CmdletBinding 函式如何使用可用於已編譯 Cmdlet 的方法和屬性。

about_Functions_Advanced_Parameters

說明如何將參數新增至進階函式。

about_Functions_Advanced

介紹使用腳本建立 Cmdlet 的進階函式。

about_Functions_Argument_Completion

自變數完成是 PowerShell 的一項功能,可提供提示、啟用探索,以及加速自變數值的輸入輸入。

about_Functions_CmdletBindingAttribute

描述讓函式運作的屬性,就像編譯的 Cmdlet 一樣。

about_Functions_OutputTypeAttribute

描述報告函式傳回之物件類型的屬性。

about_Functions

描述如何在PowerShell中建立和使用函式。

about_Group_Policy_設定

描述 Windows PowerShell 的組策略設定

about_Hash_Tables

描述如何在PowerShell中建立、使用和排序哈希表。

about_Hidden

描述 hidden 關鍵詞,其會隱藏默認 Get-Member 結果中的類別成員。

about_History

描述如何在命令歷程記錄中取得和執行命令。

about_If

描述一個語言命令,您可以根據一或多個條件式測試的結果來執行語句清單。

about_Intrinsic_Members

提供所有 PowerShell 物件可用之 PowerShell 內建成員的相關信息。

about_Job_Details

提供有關本機和遠端電腦上背景工作的詳細數據。

about_Jobs

提供PowerShell背景作業如何在背景中執行命令或表達式,而不需與目前會話互動的相關信息。

about_Join

描述聯結運算子 (-join) 如何將多個字串合併成單一字串。

about_Language_Keywords

描述 PowerShell 腳本語言中的關鍵詞。

about_Language_Modes

說明語言模式及其對PowerShell會話的影響。

about_Line_Editing

描述如何在PowerShell命令提示字元中編輯命令。

about_Locations

描述如何從PowerShell中的工作位置存取專案。

about_Logging

PowerShell 會記錄引擎、提供者和 Cmdlet 的內部作業。

about_Logical_Operators

描述在 PowerShell 中連接語句的運算子。

about_Member-Access_Enumeration

描述使用成員存取運算符時清單集合項目的自動列舉。

about_Methods

描述如何使用方法對 PowerShell 中的物件執行動作。

about_Module_Manifests

描述撰寫模組指令清單檔案的設定和作法。

about_Modules

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

about_Numeric_Literals

本文說明 PowerShell 中數值的語法和使用方式。

about_Object_Creation

說明如何在PowerShell中建立物件。

about_Objects

提供 Windows PowerShell 中物件的基本資訊。

about_Operator_Precedence

依優先順序列出 PowerShell 運算子。

about_Operators

描述 PowerShell 支援的運算子。

about_Output_Streams

說明 PowerShell 中輸出資料流的可用性和用途。

about_PackageManagement

PackageManagement 是軟體套件管理員的匯總工具。

about_Parameter_Sets

描述如何在進階函式中定義和使用參數集。

about_Parameters_Default_Values

描述如何設定 Cmdlet 參數和進階函式的自定義預設值。

about_Parameters

描述如何在PowerShell中使用命令參數。

about_Parsing

描述 PowerShell 如何剖析命令。

about_Path_Syntax

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

about_Pipelines

將命令結合至 PowerShell 中的管線

about_PowerShell_exe

說明如何使用 powershell.exe 命令行介面。 顯示命令行參數並描述語法。

about_PowerShell_Ise_exe

說明如何使用命令行工具PowerShell_Ise.exe。

about_Preference_Variables

自訂PowerShell行為的變數。

about_Profiles

描述如何建立及使用PowerShell配置檔。

about_Prompts

描述 函式 Prompt ,並示範如何建立自定義 Prompt 函式。

about_Properties

描述如何在PowerShell中使用物件屬性。

about_Providers

描述 PowerShell 提供者如何提供資料與元件存取權,否則無法在命令行輕鬆存取。 數據會以類似檔系統磁碟驅動器的一致格式呈現。

about_PSConsoleHostReadLine

說明如何建立自定義 PowerShell 在主控台提示字元中讀取輸入的方式。

about_PSCustomObject

說明和 [pscustomobject] 型別加速器之間的差異[psobject]

about_PSItem

包含管線物件中目前對象的自動變數。

about_PSModulePath

本文的環境變數用途和使用方式 $env:PSModulePath

about_PSSession_Details

提供有關 Windows PowerShell 工作階段及其在遠端命令中扮演角色的詳細資訊。

about_PSSessions

描述 Windows PowerShell 作業階段 (PSSessions),並說明如何建立遠端電腦的持續性連線。

about_PSSnapins

描述 Windows PowerShell 嵌入式管理單元,並示範如何使用和管理它們。

about_Quoting_Rules

描述在PowerShell中使用單引號和雙引號的規則。

about_Redirection

說明如何將PowerShell的輸出重新導向至文字檔。

about_Ref

描述如何建立及使用引用類型變數。 您可以使用參考類型變數來允許函式變更傳遞給它的變數值。

about_Registry_Provider

登錄

about_Regular_Expressions

描述 PowerShell 中的正規表示式。

about_Remote_Disconnected_Sessions

說明如何中斷連線並重新連線到 PowerShell 會話 (PSSession)。

about_Remote_Jobs

描述如何在遠端電腦上執行作業。

about_Remote_Output

描述如何解譯和格式化遠端命令的輸出。

about_Remote_Requirements

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

about_Remote_Troubleshooting

描述如何在PowerShell中針對遠端作業進行疑難解答。

about_Remote_Variables

說明如何在遠端命令中使用本機和遠端變數。

about_Remote

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

about_Requires

防止腳本在沒有必要元素的情況下執行。

about_Reserved_Words

列出無法做為標識碼的保留字,因為它們在PowerShell中具有特殊意義。

about_Return

結束目前的範圍,可以是函式、腳本或腳本區塊。

about_Run_With_PowerShell

說明如何使用「搭配 PowerShell 執行」功能,從文件系統磁碟驅動器執行腳本。

about_Scopes

說明 PowerShell 中的範圍概念,並示範如何設定和變更元素的範圍。

about_Script_Blocks

定義腳本區塊是什麼,並說明如何在PowerShell程式設計語言中使用腳本區塊。

about_Script_Internationalization

描述文本國際化功能,可讓腳本在使用者介面 (UI) 語言中輕鬆地向用戶顯示訊息和指示。

about_Scripts

描述如何在PowerShell中執行和撰寫腳本。

about_Session_Configuration_Files

描述工作階段組態檔,這些配置檔用於會話組態(也稱為「端點」),以定義使用會話組態的會話環境。

about_Session_Configurations

描述會話組態,可決定可遠端連線到計算機的使用者,以及他們可以執行的命令。

about_Signing

說明如何簽署腳本,使其符合PowerShell執行原則。

about_Simplified_Syntax

描述物件集合文本篩選的簡單、更自然的語言方式。

about_Special_Characters

描述控制 PowerShell 如何解譯序列中下一個字元的特殊字元序列。

about_Splatting

描述如何使用曲線將參數傳遞至 PowerShell 中的命令。

about_Split

說明如何使用Split運算符,將一或多個字串分割成子字串。

about_Switch

說明如何使用 參數來處理多個 if 語句。

about_Tab_Expansion

PowerShell 提供輸入的完成,以提供提示、啟用探索,以及加速輸入輸入。 按下 Tab 鍵即可完成命令名稱、參數名稱、自變數值和檔案路徑。

about_Throw

描述 throw 產生終止錯誤的關鍵詞。

about_Transactions

描述如何在PowerShell中管理交易作業。

about_Trap

描述處理終止錯誤的關鍵詞。

about_Try_Catch_Finally

描述如何使用 trycatchfinally 區塊來處理終止錯誤。

about_Type_Accelerators

描述適用於 .NET Framework 類別的類型加速器

about_Type_Operators

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

about_Types.ps1xml

說明如何使用 Types.ps1xml 檔案來擴充PowerShell中使用的物件類型。

about_Updatable_Help

描述 PowerShell 中可更新的說明系統。

about_Using

可讓您指出會話中所使用的命名空間。

about_Variable_Provider

變數

about_Variables

描述變數如何儲存可在PowerShell中使用的值。

about_While

描述語言語句,您可以根據條件式測試結果來執行命令區塊。

about_Wildcards

描述如何在PowerShell中使用通配符。

about_Windows_Powershell_5.1

描述 Windows PowerShell 5.1 中包含的新功能。

about_Windows_PowerShell_ISE

描述 Windows PowerShell 整合式腳本環境 (ISE) 的功能和系統需求。

about_Windows_RT

說明 Windows RT 8.1 上 Windows PowerShell 4.0 的限制。

about_WMI_Cmdlets

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

about_WMI

Windows Management Instrumentation (WMI) 使用 Common Information Model (CIM) 來代表新式企業的系統、應用程式、網路、裝置和其他可管理元件。

about_WQL

描述 WMI 查詢語言 (WQL),可用來在 Windows PowerShell 中取得 WMI 物件。