Set-SCNotification

Dismisses update notifications for a service template or service instance.

Syntax

Set-SCNotification
   [-VMMServer <ServerConnection>]
   -Notifications <Notification[]>
   [-Dismiss]
   [-RunAsynchronously]
   [-PROTipID <Guid>]
   [-JobVariable <String>]
   [<CommonParameters>]

Description

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

Examples

Example 1: Dismiss all update notifications for a service

PS C:\> $Service = Get-SCService -Name "Service01"
PS C:\> $Notifications = Get-SCNotification -NotifiedObject $Service
PS C:\> Set-SCNotification -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.

Required Parameters

-Dismiss

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.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Notifications

Specifies one or more notification objects.

Type:Notification[]
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Optional Parameters

-JobVariable

Specifies that job progress is tracked and stored in the variable named by this parameter.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-PROTipID

Specifies the ID of the Performance and Resource Optimization tip (PRO tip) that triggered this action. This parameter lets you audit PRO tips.

Type:Guid
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RunAsynchronously

Indicates that the job runs asynchronously so that control returns to the command shell immediately.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-VMMServer

Specifies a Virtual Machine Manager (VMM) server object.

Type:ServerConnection
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False