Write-SCOMCommand
Writes a new command to interact with Operations Manager.
Syntax
Write-SCOMCommand
-Name <String>
[<CommonParameters>]
Write-SCOMCommand
[-NoName]
[<CommonParameters>]
Description
The Write-SCOMCommand cmdlet writes a new Windows PowerShell command to interact with System Center - Operations Manager. The new command uses the same common SDK connection code as the standard Operations Manager cmdlets.
Examples
Example 1: Write a new script command
PS C:\>Write-SCOMCommand -Name "Test-DivBManagementPack"
This command outputs a new script command template named Test-DivBManagementPack.
Parameters
-Name
Specifies the name of the command.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-NoName
Indicates that the cmdlet creates an unnamed script.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |