Write-SCOMCommand
Writes a new command to interact with Operations Manager.
Syntax
Name (Default)
Write-SCOMCommand
-Name <String>
[<CommonParameters>]
NoName
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.
Parameter properties
| Type: | String |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
Name
| Position: | Named |
| Mandatory: | True |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-NoName
Indicates that the cmdlet creates an unnamed script.
Parameter properties
| Type: | SwitchParameter |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
NoName
| Position: | Named |
| Mandatory: | True |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.