tech.guitarrapc.cóm

Technical updates

PowerShellで利用できるaboutファイル一覧

PowerShellには、その使い方等を記載したabout_xxxxxファイルがインストール時にセットされます。 今回は、そのaboutファイルのパスと簡単な確認方法についです。

about_xxxxのパス

about_xxxxファイルは、以下のパスに存在します。

#English file path
C:\WINDOWS\system32\WindowsPowerShell\V1.0\en-US

#日本語ファイルパス
C:\WINDOWS\system32\WindowsPowerShell\V1.0\ja-JP

閲覧方法

二つあります。

  1. 対象のabout_xxxxx.txtファイルを直接開く
  2. Get-Help about_xxxxxをコンソールから実行

どちらでも好きな方でいいかと思います。 が、前回の記事で紹介した通りPowerShell 3.0からポップアップ表示/検索が可能になったのでエディタで開く必要性は随分と低くなりました。

PowerShellでヘルプをポップアップ表示させたい
Get-Help about_Windows_PowerShell_3.0 -ShowWindow

 

ファイル一覧の取得

一々パスを開く必要はありません。 このコマンド一つで表示されます。

Get-Help About* | Format-Wide Name -AutoSize

Windows 8 Pro x64での一覧です。 

about_Aliases
about_Arithmetic_Operators
about_Arrays
about_Assignment_Operators
about_Automatic_Variables
about_Break
about_Command_Precedence
about_Command_Syntax
about_Comment_Based_Help
about_CommonParameters
about_Comparison_Operators
about_Continue
about_Core_Commands
about_Data_Sections
about_Debuggers
about_Do
about_Environment_Variables
about_Escape_Characters
about_Eventlogs
about_Execution_Policies
about_For
about_Foreach
about_Format.ps1xml
about_Functions
about_Functions_Advanced
about_Functions_Advanced_Methods
about_Functions_Advanced_Parameters
about_Functions_CmdletBindingAttribute
about_Functions_OutputTypeAttribute
about_Group_Policy_Settings
about_Hash_Tables
about_History
about_If
about_Jobs
about_Job_Details
about_Join
about_Language_Keywords
about_Line_Editing
about_Locations
about_Logical_Operators
about_Methods
about_Modules
about_Objects
about_Object_Creation
about_Operators
about_Operator_Precedence
about_Parameters
about_Parameters_Default_Values
about_Parsing
about_Path_Syntax
about_Pipelines
about_PowerShell.exe
about_PowerShell_Ise.exe
about_Preference_Variables
about_Profiles
about_Prompts
about_Properties
about_Providers
about_PSSessions
about_PSSession_Details
about_PSSnapins
about_Quoting_Rules
about_Redirection
about_Ref
about_Regular_Expressions
about_Remote
about_Remote_Disconnected_Sessions
about_Remote_FAQ
about_Remote_Jobs
about_Remote_Output
about_Remote_Requirements
about_Remote_Troubleshooting
about_Remote_Variables
about_Requires
about_Reserved_Words
about_Return
about_Run_With_PowerShell
about_Scopes
about_Scripts
about_Script_Blocks
about_Script_Internationalization
about_Session_Configurations
about_Session_Configuration_Files
about_Signing
about_Special_Characters
about_Splatting
about_Split
about_Switch
about_Throw
about_Transactions
about_Trap
about_Try_Catch_Finally
about_Types.ps1xml
about_Type_Operators
about_Updatable_Help
about_Variables
about_While
about_Wildcards
about_Windows_PowerShell_3.0
about_Windows_PowerShell_ISE
about_WMI
about_Wmi_Cmdlets
about_WQL
about_WS-Management_Cmdlets

簡単な説明も見たいならこれで。

Get-Help About* | Format-Wide Name -AutoSize

結果です。

PS D:\> Get-Help About* | Format-Table Name, Synopsis -AutoSize

Name                                   Synopsis
----                                   --------
about_Aliases                          Describes how to use alternate names for cmdlets and commands in Windows
about_Arithmetic_Operators             Describes the operators that perform arithmetic in Windows PowerShell.
about_Arrays                           Describes arrays, which are data structures designed to store
about_Assignment_Operators             Describes how to use operators to assign values to variables.
about_Automatic_Variables              Describes variables that store state information for Windows PowerShell.
about_Break                            Describes a statement you can use to immediately exit Foreach, For, While,
about_Command_Precedence               Describes how Windows PowerShell determines which command to run.
about_Command_Syntax                   Describes the syntax diagrams that are used in Windows PowerShell.
about_Comment_Based_Help               Describes how to write comment-based help topics for functions and scripts.
about_CommonParameters                 Describes the parameters that can be used with any cmdlet.
about_Comparison_Operators             Describes the operators that compare values in Windows PowerShell.
about_Continue                         Describes how the Continue statement immediately returns the program flow   
about_Core_Commands                    Lists the cmdlets that are designed for use with Windows PowerShell
about_Data_Sections                    Explains Data sections, which isolate text strings and other read-only
about_Debuggers                        Describes the Windows PowerShell debugger.
about_Do                               Runs a statement list one or more times, subject to a While or Until
about_Environment_Variables            Describes how to access Windows environment variables in Windows
about_Escape_Characters                Introduces the escape character in Windows PowerShell and explains
about_Eventlogs                        Windows PowerShell creates a Windows event log that is
about_Execution_Policies               Describes the Windows PowerShell execution policies and explains
about_For                              Describes a language command you can use to run statements based on a
about_Foreach                          Describes a language command you can use to traverse all the items in a
about_Format.ps1xml                    The Format.ps1xml files in Windows PowerShell define the default display
about_Functions                        Describes how to create and use functions in Windows PowerShell.
about_Functions_Advanced               Introduces advanced functions that act similar to cmdlets.
about_Functions_Advanced_Methods       Describes how functions that specify the CmdletBinding attribute can use
about_Functions_Advanced_Parameters    Explains how to add parameters to advanced functions.
about_Functions_CmdletBindingAttribute Describes the attribute that makes a function work like a
about_Functions_OutputTypeAttribute    SHORT DESCRIPTION
about_Group_Policy_Settings            Describes the Group Policy settings for Windows PowerShell
about_Hash_Tables                      Describes how to create, use, and sort hash tables in Windows PowerShell.
about_History                          Describes how to get and run commands in the command history.
about_If                               Describes a language command you can use to run statement lists based
about_Jobs                             Provides information about how Windows PowerShell background jobs run a
about_Job_Details                      Provides details about background jobs on local and remote computers.
about_Join                             Describes how the join operator (-join) combines multiple strings into a
about_Language_Keywords                Describes the keywords in the Windows PowerShell scripting language.
about_Line_Editing                     Describes how to edit commands at the Windows PowerShell command prompt.
about_Locations                        Describes how to access items from the working location in Windows
about_Logical_Operators                Describes the operators that connect statements in Windows PowerShell.
about_Methods                          Describes how to use methods to perform actions on objects in Windows
about_Modules                          Explains how to install, import, and use Windows PowerShell modules.
about_Objects                          Provides essential information about objects in Windows PowerShell.
about_Object_Creation                  Explains how to create objects in Windows PowerShell.
about_Operators                        Describes the operators that are supported by Windows PowerShell.
about_Operator_Precedence              Lists the Windows PowerShell operators in precedence order.
about_Parameters                       SHORT DESCRIPTION
about_Parameters_Default_Values        SHORT DESCRIPTION
about_Parsing                          Describes how Windows PowerShell parses commands.
about_Path_Syntax                      Describes the full and relative path name formats in Windows PowerShell.
about_Pipelines                        Combining commands into pipelines in the Windows PowerShell
about_PowerShell.exe                   Explains how to use the PowerShell.exe command-line tool. Displays
about_PowerShell_Ise.exe               Explains how to use the PowerShell_Ise.exe command-line tool.
about_Preference_Variables             Variables that customize the behavior of Windows PowerShell
about_Profiles                         Describes how to create and use a Windows PowerShell profile.
about_Prompts                          Describes the Prompt function and demonstrates how to create a custom
about_Properties                       Describes how to use object properties in Windows PowerShell.
about_Providers                        Describes how Windows PowerShell providers provide access to data and
about_PSSessions                       Describes Windows PowerShell sessions (PSSessions) and explains how to
about_PSSession_Details                Provides detailed information about Windows PowerShell sessions and the
about_PSSnapins                        Describes Windows PowerShell snap-ins and shows how to use and manage them.
about_Quoting_Rules                    Describes rules for using single and double quotation marks
about_Redirection                      Explains how to redirect output from Windows PowerShell to text files.
about_Ref                              Describes how to create and use a reference variable type.
about_Regular_Expressions              Describes regular expressions in Windows PowerShell.
about_Remote                           Describes how to run remote commands in Windows PowerShell.
about_Remote_Disconnected_Sessions     Explains how to disconnect from and reconnect to a PSSession
about_Remote_FAQ                       Contains questions and answers about running remote commands
about_Remote_Jobs                      Describes how to run background jobs on remote computers.
about_Remote_Output                    Describes how to interpret and format the output of remote commands.
about_Remote_Requirements              Describes the system requirements and configuration requirements for
about_Remote_Troubleshooting           Describes how to troubleshoot remote operations in Windows PowerShell.
about_Remote_Variables                 Explains how to use local and remote variables in remote
about_Requires                         Prevents a script from running without the required elements.
about_Reserved_Words                   Lists the reserved words that cannot be used as identifiers because they
about_Return                           Exits the current scope, which can be a function, script, or script block.
about_Run_With_PowerShell              Explains how to use the "Run with PowerShell" feature to run
about_Scopes                           Explains the concept of scope in Windows PowerShell and shows how to set
about_Scripts                          Describes how to run and write scripts in Windows PowerShell.
about_Script_Blocks                    Defines what a script block is and explains how to use script blocks in
about_Script_Internationalization      Describes the script internationalization features of Windows PowerShell 2.0
about_Session_Configurations           Describes session configurations, which determine the users who can
about_Session_Configuration_Files      Describes session configuration files, which can be used in a
about_Signing                          Explains how to sign scripts so that they comply with the Windows
about_Special_Characters               Describes the special characters that you can use to control how
about_Splatting                        SHORT DESCRIPTION
about_Split                            Explains how to use the Split operator to split one or more strings into
about_Switch                           Explains how to use a switch to handle multiple If statements.
about_Throw                            Describes the Throw keyword, which generates a terminating error.
about_Transactions                     Describes how to manage transacted operations in Windows PowerShell.
about_Trap                             Describes a keyword that handles a terminating error.
about_Try_Catch_Finally                Describes how to use the Try, Catch, and Finally blocks to handle
about_Types.ps1xml                     Explains how to use Types.ps1xml files to extend the types of objects
about_Type_Operators                   Describes the operators that work with Microsoft .NET Framework types.
about_Updatable_Help                   SHORT DESCRIPTION
about_Variables                        Describes how variables store values that can be used in Windows
about_While                            Describes a language statement that you can use to run a command block
about_Wildcards                        Describes how to use wildcard characters in Windows PowerShell.
about_Windows_PowerShell_3.0           Describes some of the new features that are included in
about_Windows_PowerShell_ISE           Describes the features and system requirements of Windows PowerShell
about_WMI
about_Wmi_Cmdlets                      Provides background information about Windows Management Instrumentation
about_WQL
about_WS-Management_Cmdlets            Provides an overview of Web Services for Management (WS-Management) as

まとめ

about_xxxxは、コマンドではない概略を知るにはもってこいです。 ふと何だろうと思った時はぜひ。 特にwmiはこの情報が中々使えます。