Set-RASNotificationScript
Last updated
Last updated
Set-RASNotificationScript
Update notification script.
Set-RASNotificationScript -** (uint) [ (string)] [ (string)] [ (string)] [ (string)] [ (SecureString)] [ (string)] [()]
Set-RASNotificationScript - () [ (string)] [ (string)] [ (string)] [ (string)] [ (SecureString)] [ (string)] [()]
Set-RASNotificationScript - (string) [ (string)] [ (string)] [ (string)] [ (string)] [ (SecureString)] [ (uint)] [ (string)] [()]
Updates an existing script.
Script name.
Site ID.
Script ID.
A new script name to assign.
Command to execute when invoked.
Command arguments.
Script base directory.
Execute script as this system user.
System user password.
(CommonParameters)
-none-
-none-
**---------- 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.
() Input object from pipe line or by parameter.