Set-RASNotificationScript
Update notification script.
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>]
Updates an existing script.
-Name <string> Script name.
-SiteId <uint> Site ID.
-Id <uint> Script ID.
-InputObject <NotificationScript> Input object from pipe line or by parameter.
-NewName <string> A new script name to assign.
-Command <string> Command to execute when invoked.
-Arguments <string> Command arguments.
-InitialDirectory <string> Script base directory.
-Username <string> Execute script as this system user.
-Password <SecureString> 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.