描述
关于主题涵盖有关 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_Calling_Generic_Methods
泛型使你可以根据它所针对的精确数据类型定制方法、类、结构或接口。
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_Comments
介绍如何使用 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_Do
运行一个或多个语句列表,受 while 或 until 条件的约束。
about_Enum
enum 语句用于声明枚举。 枚举是一种非重复类型,由一组名为枚举器列表的命名标签组成。
about_Environment_Provider
提供对 Windows 环境变量的访问权限。
about_Environment_Variables
介绍如何在 PowerShell 中访问和管理环境变量。
about_Error_Handling
介绍 PowerShell 错误的三个类别(非终止、语句终止和脚本终止),并说明错误操作首选项 try/catch/trap和错误状态变量如何控制错误处理行为。
about_Execution_Policies
介绍 PowerShell 执行策略,并说明如何管理它们。
about_Experimental_Features
PowerShell 提供了一种机制,使实验功能能够与 PowerShell 引擎或 PowerShell 模块中的现有稳定功能共存。
about_FileSystem_Provider
提供对文件和目录的访问权限。
about_For
描述可用于基于条件测试运行语句的语言命令。
about_Foreach
描述可用于遍历项集合中的所有项的语言命令。
about_Format.ps1xml
PowerShell 中的 Format.ps1xml 文件定义 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_Settings
介绍 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_Non-Windows
PowerShell 记录引擎、提供程序和 cmdlet 的内部作。
about_Logging_Windows
PowerShell 将引擎、提供程序和 cmdlet 中的内部作记录到 Windows 事件日志。
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
提供有关 PowerShell 中对象的基本信息。
about_Operator_Precedence
按优先顺序列出 PowerShell 运算符。
about_Operators
介绍 PowerShell 支持的运算符。
about_Output_Streams
介绍 PowerShell 中输出流的可用性和用途。
about_PackageManagement
PackageManagement 是软件包管理器的聚合器。
about_Parameter_Binding
参数绑定是 PowerShell 用来确定正在使用哪个参数集并将 (bind) 值与命令的参数相关联的过程。
about_Parameter_Sets
介绍如何在高级函数中定义和使用参数集。
about_Parameters_Default_Values
介绍如何为 cmdlet 参数和高级函数设置自定义默认值。
about_Parameters
介绍如何在 PowerShell 中使用命令参数。
about_Parsing
介绍 PowerShell 如何分析命令。
about_Path_Syntax
介绍 PowerShell 中的完整和相对路径格式。
about_Pipeline_Chain_Operators
介绍将管道与 PowerShell 中的 && 和 || 运算符链接在一起。
about_Pipelines
将命令合并到 PowerShell 中的管道中
about_PowerShell_Config
PowerShell 的配置文件,替换注册表配置。
about_PowerShell_Editions
不同版本的 PowerShell 在不同的基础运行时上运行。
about_Preference_Variables
自定义 PowerShell 行为的变量。
about_Profiles
介绍如何创建和使用 PowerShell 配置文件。
about_Prompts
介绍 prompt 函数,并演示如何创建自定义 prompt 函数。
about_Properties
介绍如何在 PowerShell 中使用对象属性。
about_Providers
PowerShell 提供程序提供对数据和组件的访问权限,格式与文件系统驱动器类似。
about_PSConsoleHostReadLine
介绍如何在控制台提示符下创建自定义 PowerShell 如何读取输入。
about_PSCustomObject
说明 [psobject] 和 [pscustomobject] 类型加速器之间的差异。
about_PSItem
包含管道对象中的当前对象的自动变量。
about_PSModulePath
本文介绍 $Env:PSModulePath 环境变量的用途和用法。
about_PSSession_Details
提供有关 PowerShell 会话及其在远程命令中扮演的角色的详细信息。
about_PSSessions
介绍 PowerShell 会话(PSSessions),并说明如何建立与远程计算机的持久连接。
about_Pwsh
介绍如何使用 pwsh 命令行接口。 显示命令行参数并描述语法。
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
退出当前范围,可以是函数、脚本或 scriptblock。
about_Run_With_PowerShell
介绍如何使用“使用 PowerShell 运行”功能从文件系统驱动器运行脚本。
about_Scopes
介绍 PowerShell 中的作用域概念,并演示如何设置和更改元素的范围。
about_Script_Blocks
定义脚本块是什么,并说明如何在 PowerShell 编程语言中使用 scriptblock。
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
介绍如何使用 Splatting 将参数传递给 PowerShell 中的命令。
about_Split
介绍如何使用 Split 运算符将一个或多个字符串拆分为子字符串。
about_Switch
介绍如何使用开关来处理多个 if 语句。
about_Tab_Expansion
PowerShell 提供输入的完成,通过按 Tab 键来提供提示、启用发现和加快输入输入。
about_Telemetry
介绍在 PowerShell 中收集的遥测数据,以及如何选择退出。
about_Thread_Jobs
提供有关基于 PowerShell 线程的作业的信息。 线程作业是一种后台作业,可在当前会话进程中的单独线程中运行命令或表达式。
about_Throw
描述 throw 默认情况下生成脚本终止错误的关键字。
about_Trap
描述处理语句终止和脚本终止错误的关键字。
about_Try_Catch_Finally
介绍如何使用try和catchfinally块来处理语句终止和脚本终止错误。
about_Type_Accelerators
介绍可用于 .NET 类型的类型加速器。
about_Type_Conversion
PowerShell 具有灵活的类型系统,使它更易于使用。 但是,必须了解其工作原理,以避免意外结果。
about_Type_Operators
描述使用 Microsoft .NET 类型的运算符。
about_Types.ps1xml
介绍如何使用 Types.ps1xml 文件来扩展 PowerShell 中使用的对象类型。
about_Updatable_Help
介绍 PowerShell 中的可更新帮助系统。
about_Update_Notifications
在 PowerShell 启动时通知用户 PowerShell 新版本已发布。
about_Using
允许你指示会话中使用的命名空间。
about_Variable_Provider
变量
about_Variables
描述变量如何存储可在 PowerShell 中使用的值。
about_While
描述一个语言语句,可用于基于条件测试结果运行命令块。
about_Wildcards
介绍如何在 PowerShell 中使用通配符。
about_Windows_PowerShell_Compatibility
介绍 PowerShell 7 的 Windows PowerShell 兼容性功能。