Come and Check our BETA Alpha version of Powershellcenter.net
Send me your comment to Powershell@powershellcenter.com

Synopsis

Writes a new PowerShell command to interact with Operations Manager.

Syntax

Write-SCOMCommand -Name <String> [<CommonParameters>]

Write-SCOMCommand -NoName [<SwitchParameter>] [<CommonParameters>]

Detailed Description

The Write-SCOMCommand cmdlet writes a new PowerShell command to interact with Operations Manager. Uses the same common SDK connection code as the standard Operations Manager cmdlets.

Parameters

-Name [<String>]

The name of the function to create.

Required?   true
Position?   named
Default value?  
Accept pipeline input?   false
Accept wildcard characters?   false

-NoName [<SwitchParameter>]

If set, will create an unnamed script.

Required?   true
Position?   named
Default value?  
Accept pipeline input?   false
Accept wildcard characters?   false

Input Type

Return Type

Notes

Examples

EXAMPLE 1

PS> PS C:\>Write-SCOMCommand -Name 'Test-ForMyManagementPack'

This command outputs a new script function template named Test-ForMyManagementPack.