Export (0) Print
Expand All
Collapse the table of content
Expand the table of content
Expand Minimize

Write-SCOMCommand

Updated: October 2, 2015

Write-SCOMCommand

Writes a new command to interact with Operations Manager.

Syntax

Parameter Set: Name
Write-SCOMCommand -Name <String> [ <CommonParameters>]

Parameter Set: NoName
Write-SCOMCommand -NoName [ <CommonParameters>]




Detailed Description

The Write-SCOMCommand cmdlet writes a new Windows PowerShell command to interact with System Center 2016 – Operations Manager. The new command uses the same common SDK connection code as the standard Operations Manager cmdlets.

Parameters

-Name<String>

Specifies the name of the command.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-NoName

Indicates that the cmdlet creates an unnamed script.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see    about_CommonParameters.

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

Examples

Example 1: Write a new script command

This command outputs a new script command template named Test-DivBManagementPack.


PS C:\> Write-SCOMCommand -Name "Test-DivBManagementPack"

Related topics

Community Additions

ADD
Show:
© 2016 Microsoft