> For the complete documentation index, see [llms.txt](https://docs.parallels.com/landing/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/cmdlets/set-rasnotification.md).

# Set-RASNotification

## SYNOPSIS

Update notification.

## SYNTAX

```powershell
Set-RASNotification -Id <uint> [-AllServers <bool>] [-Direction {RisesAbove | LowersBelow}]
 [-Enabled <bool>] [-EnableGracePeriod <bool>] [-EnableInterval <bool>] [-ExecuteScript <bool>]
 [-GracePeriod <uint>] [-Interval <uint>] [-Recipients <string[]>] [-ScriptId <uint>]
 [-ScriptObject <NotificationScript>] [-SendEmail <bool>] [-TargetIds <List`1>]
 [-TargetType {AllServers | RDSHostPools | VDIHostPools | AVDHostPools | RemotePCs | SecureGateways | Brokers | EnrollmentServers | ForceAllAgents}]
 [-Threshold <uint>] [-WaitUntilRecovered <bool>] [<CommonParameters>]
```

```powershell
Set-RASNotification -InputObject <Notification> [-AllServers <bool>]
 [-Direction {RisesAbove | LowersBelow}] [-Enabled <bool>] [-EnableGracePeriod <bool>]
 [-EnableInterval <bool>] [-ExecuteScript <bool>] [-GracePeriod <uint>] [-Interval <uint>]
 [-Recipients <string[]>] [-ScriptId <uint>] [-ScriptObject <NotificationScript>]
 [-SendEmail <bool>] [-TargetIds <List`1>]
 [-TargetType {AllServers | RDSHostPools | VDIHostPools | AVDHostPools | RemotePCs | SecureGateways | Brokers | EnrollmentServers | ForceAllAgents}]
 [-Threshold <uint>] [-WaitUntilRecovered <bool>] [<CommonParameters>]
```

## DESCRIPTION

Updates the selected notification with new settings.

## EXAMPLES

### Example 1

```powershell
Set-RASNotification -Id 1 -Type License -Enabled $true -GracePeriod 22
```

Changes notification of Id 1 to be a License notification with grace period of 22min.

### Example 2

```powershell
Set-RASNotification -Id 2 -Type CPUEvent -Threshold 50 -Direction RisesAbove -Enabled
```

Changes notification of Id 2 to be a CPU notification with a raises above 50% rule.

## PARAMETERS

### -InputObject

InputObject from pipeline or by parameter.

Type reference: [Notification](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/types/notification.md)

```yaml
Type: Notification
Required: True
Position: Named
Default value: None
Accept pipeline input: true (ByValue)
Accept wildcard characters: False
```

### -Id

Notification ID.

```yaml
Type: uint
Required: True
Position: Named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False
```

### -Enabled

Enable/Disable notification.

```yaml
Type: bool
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -GracePeriod

Notification grace period (minutes).

```yaml
Type: uint
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -EnableGracePeriod

Enable/Disable grace period.

```yaml
Type: bool
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -Recipients

Notification recipients.

```yaml
Type: string[]
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -SendEmail

Enable/Disable email notification.

```yaml
Type: bool
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -ScriptId

Use script of given ID.

```yaml
Type: uint
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -ScriptObject

Script object.

Type reference: [Notification](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/types/notification.md)

```yaml
Type: Notification
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -ExecuteScript

Enable/Disable notification scripts.

```yaml
Type: bool
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -Interval

Notification interval (minutes).

```yaml
Type: uint
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -EnableInterval

Enable/Disable notification intervals.

```yaml
Type: bool
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -WaitUntilRecovered

Wait until recovered.

```yaml
Type: bool
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -AllServers

All servers in site.

```yaml
Type: bool
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -TargetType

Target type.

Possible values: AllServers, RDSHostPools, VDIHostPools, AVDHostPools, RemotePCs, SecureGateways, Brokers, EnrollmentServers, ForceAllAgents

Type reference: [TargetType](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/types/targettype.md)

```yaml
Type: TargetType
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -TargetIds

Target IDs.

```yaml
Type: List`1
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -Threshold

Tolerance value which triggers notification.

```yaml
Type: uint
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -Direction

Threshold direction.

Possible values: RisesAbove, LowersBelow

Type reference: [ThresholdDirection](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/types/thresholddirection.md)

```yaml
Type: ThresholdDirection
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### 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](https://go.microsoft.com/fwlink/?LinkID=113216).

## INPUTS

### [Notification](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/types/notification.md)

## OUTPUTS

### None

## RELATED LINKS

* [Get-RASNotification](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/cmdlets/get-rasnotification.md)
* [New-RASNotification](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/cmdlets/new-rasnotification.md)
* [Remove-RASNotification](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/cmdlets/remove-rasnotification.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/cmdlets/set-rasnotification.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
