The Script configured in a notification group is running for both errors and warnings. Is it possible to limit the script so it will only run when a warning is generated?
Notification scripts will be executed regardless of the result level. This feature is functioning as designed.
WorkAround:
Add logic to the script to prevent action when the result is a Warning. For example the following code would parse all arguments passed to the script by Spotlight On Messaging and end the script if any argument is equal to "Warning".
Ensure the $TestOutcome$ and $CounterOutcome$ parameters are being passed to the script in the notification group properties.
Set Args = wscript.arguments
for each arg in Args
if arg = "Warning" then
wscript.quit
end if
next
The above code is provided without warranty for example purposes only. It is not recommended to add this code directly to a production script without comprehensive testing and is not supported by Quest Software.
© 2025 Quest Software Inc. ALL RIGHTS RESERVED. Terms of Use Privacy Cookie Preference Center