概要
コマンドレットや他のWindows PowerShellコマンドの基本的な情報を得る
構文
Get-Command [[-Name] <string[]>] [-CommandType {Alias | Function | Filter | Cmdlet | ExternalScript | Application | Script | All}] [[-ArgumentList] <Object[]>] [-Module <string[]>] [-Syntax] [-TotalCount <int>] [<CommonParameters>]
Get-Command [-Noun <string[]>] [-Verb <string[]>] [[-ArgumentList] <Object[]>] [-Module <string[]>] [-Syntax] [-TotalCount <int>] [<CommonParameters>]
詳細
- 「get-command」でコマンドレットと関数、エイリアスの一覧を取得
- 「get-command *」でWindows PowerShellからアクセス可能なすべての要素一覧を取得
パラメータ
-ArgumentList <Object[]>
-CommandType <CommandTypes>
-Module <string[]>
-Name <string[]>
-Noun <string[]>-Syntax [<SwitchParameter>]
-TotalCount <int>
-Verb <string[]>
<CommonParameters>
Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, OutVariableを指定可能
使用例
get-command
get-command *
get-command -commandtype cmdled
get-command Get-* -commandtype cmdlet
コメント