Snooze / Unsnooze a Spotlight Alarm

Dell.SoSSE.SnoozeAlarm (ConsoleTask)

If an alarm is snoozed, no alarm actions are performed until the alarms become active again.

Element properties:

TargetDell.SoSSE.Alarms
Application"\%windir\%\system32\windowspowershell\v1.0\powershell.exe"
WorkingDirectory
isRequireOutputTrue
AccessibilityPublic
EnabledTrue
CommentSnoozes selected Spotlight alarms.

Source Code:

<ConsoleTask ID="Dell.SoSSE.SnoozeAlarm" Accessibility="Public" Enabled="true" Target="Dell.SoSSE.Alarms" RequireOutput="true" Comment="Snoozes selected Spotlight alarms.">
<Assembly>Res.Dell.SoSSE.SnoozeAlarm</Assembly>
<Handler>ShellHandler</Handler>
<Parameters>
<Argument Name="WorkingDirectory"/>
<Argument Name="Application">"%windir%\system32\windowspowershell\v1.0\powershell.exe"</Argument>
<Argument>
"if (test-path \"%sosse_mp_path%\scripts\SnoozeAlarms.ps1\")
{
&amp; "\"%sosse_mp_path%\scripts\SnoozeAlarms.ps1\" `
$Target/Property[Type="Dell.SoSSE.Alarms"]/ConnectionName$ `
'$Target/Property[Type="Dell.SoSSE.Alarms"]/AlarmName$' `
'$Target/Property[Type="Dell.SoSSE.Alarms"]/AlarmFirstRaisedMSEpoch$' `
$Target/Property[Type="Dell.SoSSE.Alarms"]/AlarmSnoozed$ `
'$Target/Property[Type="Dell.SoSSE.Alarms"]/AlarmSnoozedUntil$' `
$Target/Host/Host/Property[Type="Dell.SoSSE.DiagnosticServers"]/Version$ `
$Target/Property[Type="Dell.SoSSE.Alarms"]/DSName$"
}
else
{
write-host 'SnoozeAlarms.ps1 cannot be accessed.'
write-host "`n`n"
write-host 'Please check that the environment variable \"sosse_mp_path\" is set and contains \"scripts\SnoozeAlarms.ps1\".'
}"
</Argument>
</Parameters>
</ConsoleTask>