Set-RASNotificationScript.md
NAME
Set-RASNotificationScript
SYNOPSIS
Update notification script.
SYNTAX
Set-RASNotificationScript -Id (uint) [Arguments (string)] [Command (string)] [InitialDirectory (string)] [NewName (string)] [Password (SecureString)] [Username (string)] [(CommonParameters)]
**Set-RASNotificationScript -InputObject (NotificationScript) [Arguments (string)] [Command (string)] [InitialDirectory (string)] [NewName (string)] [Password (SecureString)] [Username (string)] [(CommonParameters)]
**Set-RASNotificationScript -Name (string) [Arguments (string)] [Command (string)] [InitialDirectory (string)] [NewName (string)] [Password (SecureString)] [SiteId (uint)] [Username (string)] [(CommonParameters)]
DESCRIPTION
Updates an existing script.
PARAMETERS
Name (string)
Script name.
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? falseSiteId (uint)
Site ID.
Required? false
Position? named
Default value 0
Accept pipeline input? false
Accept wildcard characters? falseId (uint)
Script ID.
Required? true
Position? named
Default value 0
Accept pipeline input? false
Accept wildcard characters? falseInputObject
(NotificationScript) Input object from pipe line or by parameter.
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? falseNewName (string)
A new script name to assign.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? falseCommand (string)
Command to execute when invoked.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? falseArguments (string)
Command arguments.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? falseInitialDirectory (string)
Script base directory.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? falseUsername (string)
Execute script as this system user.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? falsePassword (SecureString)
System user password.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false(CommonParameters)
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters documentation. INPUTS
-none-
OUTPUTS
-none-
EXAMPLES
**---------- EXAMPLE 1 ----------
Set-RASNotificationScript -Id 12 -Arguments "(`$HOSTPOOL) (`$CA) (`$FARM-NAME)" -Command "otherScript.py"
Updates notification script with Id 12 using specified parameter values. **---------- EXAMPLE 2 ----------
Set-RASNotificationScript -Name "notif_script" -Arguments "(`$HOSTPOOL) (`$CA) (`$FARM-NAME)" -Command "otherScript.py"
Updates notification script named 'notif_script' using specified parameter values. **---------- EXAMPLE 3 ----------
Get-NotificationScript -Id 12 | Set-RASNotificationScript -Arguments "(`$HOSTPOOL)(`$CA)(`$FARM-NAME)" -Command "otherScript.py"
Updates notification script from pipeline using specified parameter values.
RELATED LINKS
Last updated