# Set-RASNotificationResource

## NAME

Set-RASNotificationResource

## SYNOPSIS

Update resource notification.

## SYNTAX

**Set-RASNotificationResource**\
\[[Id](#id-string)] _(uint)_\
\[[AllServers](#allservers-string)_(bool)_] \[-[Direction](#Direction)\
{RisesAbove | LowersBelow}]\
\[[Enabled](#enabled-string) _(bool)_]\
\[[EnableGracePeriod](#enablegraceperiod-string)_(bool)_]\
\[[EnableInterval](#enableinterval-string)_(bool)_]\
\[[ExecuteScript](#executescript-string)_(bool)_]\
\[[GracePeriod](#graceperiod-string)_(uint)_] \[[Interval](#interval-string)_(uint)_]\
\[-[Recipients](#Recipients)_(string\[])_]\
\[[ScriptId](#scriptid-string) _(uint)_]\
\[-[ScriptObject](#ScriptObject)_(_[_NotificationScript_](../types/notificationscript)_)_]\
\[[SendEmail](#sendemail-string) _(bool)_]\
\[-[TargetIds](#TargetIds)_(List\`1)_]\
\[-[TargetType](#TargetType) {AllServers\
\| RDSHostPools | RDSHGroups | VDIHostPools | VDIPools |\
AVDHostPools | RemotePCs | SecureGateways | Gateways | Brokers |\
PublishingAgents | EnrollmentServers | ForceAllAgents}]\
\[[Threshold](#threshold-string) _(uint)_]\
\[[WaitUntilRecovered](#waituntilrecovered-string)_(bool)_]\
\[_(_[_CommonParameters_](#CommonParameters)_)_]

**Set-RASNotificationResource**\
\[-[InputObject](#inputobject)]_(_[_NotificationResource_](../types/notificationresource)_)_\
\[[AllServers](#allservers-string)_(bool)_] \[-[Direction](#Direction)\
{RisesAbove | LowersBelow}]\
\[[Enabled](#enabled-string) _(bool)_]\
\[[EnableGracePeriod](#enablegraceperiod-string)_(bool)_]\
\[[EnableInterval](#enableinterval-string)_(bool)_]\
\[[ExecuteScript](#executescript-string)_(bool)_]\
\[[GracePeriod](#graceperiod-string)_(uint)_] \[[Interval](#interval-string)_(uint)_]\
\[-[Recipients](#Recipients)_(string\[])_]\
\[[ScriptId](#scriptid-string) _(uint)_]\
\[-[ScriptObject](#ScriptObject)_(_[_NotificationScript_](../types/notificationscript)_)_]\
\[[SendEmail](#sendemail-string) _(bool)_]\
\[-[TargetIds](#TargetIds)_(List\`1)_]\
\[-[TargetType](#TargetType) {AllServers\
\| RDSHostPools | RDSHGroups | VDIHostPools | VDIPools |\
AVDHostPools | RemotePCs | SecureGateways | Gateways | Brokers |\
PublishingAgents | EnrollmentServers | ForceAllAgents}]\
\[[Threshold](#threshold-string) _(uint)_]\
\[[WaitUntilRecovered](#waituntilrecovered-string)_(bool)_]\
\[_(_[_CommonParameters_](#CommonParameters)_)_]

## DESCRIPTION

Updates the selected resource notification with new settings.

## PARAMETERS

## Threshold (uint)

Tolerance value which triggers notification.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## Direction

([ThresholdDirection](../types/thresholddirection))\
Threshold direction.

Possible values: RisesAbove, LowersBelow

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## InputObject

([NotificationResource](../types/notificationresource))\
InputObject from pipeline or by parameter.

```
        Required?                    true

        Position?                    0

        Default value                

        Accept pipeline input?       true (ByValue)

        Accept wildcard characters?  false
```

## Id (uint)

Notification ID.

```
        Required?                    true

        Position?                    0

        Default value                0

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## Enabled (bool)

Enable/Disable notification.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## GracePeriod (uint)

Notification grace period (minutes).

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## EnableGracePeriod (bool)

Enable/Disable grace period.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## Recipients (string\[])

Notification recipients.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## SendEmail (bool)

Enable/Disable email notification.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## ScriptId (uint)

Use script of given ID.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## ScriptObject

([NotificationScript](../types/notificationscript))\
Script object.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## ExecuteScript (bool)

Enable/Disable notification scripts.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## Interval (uint)

Notification interval (minutes).

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## EnableInterval (bool)

Enable/Disable notification intervals.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## WaitUntilRecovered (bool)

Wait until recovered.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## AllServers (bool)

All servers in site.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## TargetType ([TargetType](../types/targettype))

Target type.

Possible values: AllServers, RDSHostPools, RDSHGroups, VDIHostPools,\
VDIPools, AVDHostPools, RemotePCs, SecureGateways, Gateways, Brokers,\
PublishingAgents, EnrollmentServers, ForceAllAgents

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## TargetIds (List\`1)

Target IDs.

```
        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

[NotificationResource](../types/notificationresource)

## OUTPUTS

-none-

## EXAMPLES

\*\*---------- EXAMPLE 1 ----------

Set-RASNotificationResource -Id 1 -Type CPUEvent -Threshold 50\
-Direction RisesAbove -Enabled

Changes resource notification of Id 1 to be a CPU notification with a\
raises above 50% rule.

## RELATED LINKS

* [New-RASNotificationResource](new-rasnotificationresource)
* [Remove-RASNotificationResource](remove-rasnotificationresource)
