Get-SCOMCommand
获取当前会话中的 Operations Manager 命令。
语法
Get-SCOMCommand
[-Verb <String[]>]
[-Noun <String[]>]
[<CommonParameters>]
Get-SCOMCommand
[[-Name] <String[]>]
[-CommandType <CommandTypes>]
[<CommonParameters>]
说明
Get-SCOMCommand cmdlet 获取当前会话中的 System Center - Operations Manager 命令。 如果未为 cmdlet 指定任何参数,则 cmdlet 将返回当前会话中的所有命令。
示例
示例 1:使用名称获取命令
PS C:\>Get-SCOMCommand "*agent*"
此命令获取 Operations Manager 模块中所有命令,这些命令的名称中具有代理。
示例 2:使用 cmdlet 谓词获取命令
PS C:\>Get-SCOMCommand -Verb "Get"
此命令获取 Operations Manager 模块中使用谓词 Get 的所有命令。
参数
-CommandType
指定 Operations Manager 命令类型。
Type: | CommandTypes |
Aliases: | Type |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Name
指定 Operations Manager 命令的名称数组。
Type: | String[] |
Position: | 1 |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Noun
指定 Operations Manager cmdlet 名称中的名词数组。
Type: | String[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Verb
指定 Operations Manager cmdlet 名称中的谓词数组。
Type: | String[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |