Looking for a way to implement this STIG. What method should I use to monitor SQL Server, when it is shutdown due to "Shutdown on Audit Failure"?
I have found Event ID: 33219
Parameters:
- Cannot store a password, so difficult to use "Windows Scheduled Task"
- On a domain, remember not able to store a password
- PowerShell script:
$recipients = "<[email protected]>,<[email protected]>"
Send-MailMessage -To $recipients -Subject "SQL Audit Failure" -Body "SQL has shutdown due to Audit Failure." -SmtpServer NameOrIPAddress -From [email protected] -Priority High