Set-SCNotifications

Dismisses update notifications for a service template or service instance.

Description

The Set-SCNotifications cmdlet dismisses update notifications for a service template or service instance.

For more information about Set-SCNotifications, type: "Get-Help Set-SCNotifications -online".

Parameters

Dismiss

Required? false
Accept Pipeline Input? false
Position? named
Dismisses the error on an object or an update notification on a service instance.

After an error is dismissed, the object is refreshed. If the error reappears, refreshing does not solve the problem and you must fix the error.

JobVariable

Required? false
Accept Pipeline Input? false
Position? named
Specifies that job progress is tracked and stored in the variable named by this parameter. 

Notifications

Required? false
Accept Pipeline Input? false
Position? named
Specifies one or more notification objects.

PROTipID

Required? false
Accept Pipeline Input? false
Position? named
Specifies the ID of the PRO tip that triggered this action. This allows for auditing of PRO tips.

RunAsynchronously

Required? false
Accept Pipeline Input? false
Position? named
Indicates that the job runs asynchronously so that control returns to the command shell immediately. 

VMMServer

Required? false
Accept Pipeline Input? false
Position? named
Specifies a VMM server object.

Examples

1: Dismiss all update notifications for a service.
PS C:\> $Service = Get-SCService -Name "Service01"
PS C:\> $Notifications = Get-SCNotifications -NotifiedObject $Service
PS C:\> Set-SCNotifications -Notifications $Notifications -Dismiss
The first command gets the service object named Service01 and stores the object in the $Service variable.

The second command gets all notification objects for Service01 and stores the objects in $Notifications.

The last command dismisses all notifications for Service01.

See Also