For the complete documentation index, see llms.txt. This page is also available as Markdown.

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.

EXAMPLES

Example 1

Updates notification script with Id 12 using specified parameter values.

Example 2

Updates notification script named 'notif_script' using specified parameter values.

Example 3

Updates notification script from pipeline using specified parameter values.

PARAMETERS

-Name

Script name.

-SiteId

Site ID.

-Id

Script ID.

-InputObject

Input object from pipe line or by parameter.

Type reference: NotificationScript

-NewName

A new script name to assign.

-Command

Command to execute when invoked.

-Arguments

Command arguments.

-InitialDirectory

Script base directory.

-Username

Execute script as this system user.

-Password

System user password.

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

None

OUTPUTS

None

Last updated