名前 Get-Command 概要 Gets all commands. 構文 Get-Command [[-ArgumentList] []] [-All] [-FullyQualifiedModule []] [-ListImported ] [-Module []] [-Noun []] [-ParameterName []] [-ParameterType []] [-Sh owCommandInfo] [-Syntax] [-TotalCount []] [-Verb []] [] Get-Command [[-Name] []] [[-ArgumentList] []] [-All] [-CommandType {Alias | Function | Filter | Cmdlet | ExternalScript | Application | Script | Workflow | Configuration | All}] [-FullyQualifiedModule []] [-ListImported] [-Module []] [-ParameterName []] [-ParameterType []] [-ShowCommandInfo] [-Syntax] [-TotalCount []] [] 説明 The Get-Command cmdlet gets all commands that are installed on the computer, including cmdlets, aliases, functions , workflows, filters, scripts, and applications. Get-Command gets the commands from Windows PowerShell modules and snap-ins and commands that were imported from other sessions. To get only commands that have been imported into t he current session, use the ListImported parameter. Without parameters, a Get-Command command gets all of the cmdlets, functions, workflows and aliases installed on t he computer. A Get-Command * command gets all types of commands, including all of the non-Windows-PowerShell files in the Path environment variable ($env:path), which it lists in the "Application" command type. A Get-Command command that uses the exact name of the command (without wildcard characters) automatically imports the module that contains the command so you can use the command immediately. To enable, disable, and configure aut omatic importing of modules, use the $PSModuleAutoLoadingPreference preference variable. For more information, see about_Preference_Variables (http://go.microsoft.com/fwlink/?LinkID=113248). Get-Command gets its data directly from the command code, unlike Get-Help, which gets its information from help to pics. In Windows PowerShell 2.0, Get-Command gets only commands in current session. It does not get commands from module s that are installed, but not imported. To limit Get-Command in Windows PowerShell 3.0 and later to commands in th e current session, use the ListImported parameter. Starting in Windows PowerShell 5.0, results of the Get-Command cmdlet display a Version column by default; a new V ersion property has been added to the CommandInfo class. 関連するリンク Online Version: http://go.microsoft.com/fwlink/p/?linkid=289583 Export-PSSession Get-Help Get-Member Get-PSDrive Import-PSSession about_Command_Precedence 注釈 例を参照するには、次のように入力してください: "get-help Get-Command -examples". 詳細を参照するには、次のように入力してください: "get-help Get-Command -detailed". 技術情報を参照するには、次のように入力してください: "get-help Get-Command -full". オンライン ヘルプを参照するには、次のように入力してください: "get-help Get-Command -online"