Set-SCNotification

Dismisses update notifications for a service template or service instance.

Syntax

Set-SCNotification [-Dismiss] [-JobVariable <String>] -Notifications <Notification[]> [-PROTipID <Guid>]
 [-RunAsynchronously] [-VMMServer <ServerConnection>] [<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.

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
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-JobVariable

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

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

Specifies one or more notification objects.

Type:Notification[]
Required:True
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
Required:False
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
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-VMMServer

Specifies a Virtual Machine Manager (VMM) server object.

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