Recovery Error -2130771918 (hex 80FF0032)

I ran into the following error when a recovery would not work as expected. Error Code -2130771918.  The short of the issue is that I did not include a “.VBS” on the end of the recovery script.  When writing normal monitoring scripts, it catches this but when creating a recovery, it does not check this and the following error is logged in the State Change Context details  in health explorer.

So when creating VBScript recoveries… make sure you name the script with the “.VBS” extension.

Diagnostic and Recovery Options:
Task History:

Recovery task failed to run: Restart Print Spooler
Scheduled Time: 11/30/2015 4:40 PM
Start Time: 11/30/2015 4:40 PM
Finish Time: 11/30/2015 4:40 PM
Submitted by:
Error Message: The Event Policy for the process started at 4:40:03 PM has detected errors in the output. The ‘ExitCode’ policy expression: [^0]+ matched the following output: 1 Command executed: “C:\Windows\system32\cscript.exe” /nologo “Restart.Print.Spooler” /serviceName:”Spooler” Working Directory: C:\Program Files\Microsoft Monitoring Agent\Agent\Health Service State\Monitoring Host Temporary Files 20\46749\ One or more workflows were affected by this. Workflow name: Instance name: SERVERNAME.DOMAIN.COM Instance ID: {EBBD5613-E77F-D170-40C2-69AAE90AD10C} Management group: SCOM2012MGMT
Error Code: -2130771918


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.