This function can be used to report on the state of the CrashOnAuditFail setting on either a local or remote system/s. For more information about CrashOnAuditFail, please see following link: http://technet.microsoft.com/en-us/library/cc963220.aspx

For more information on this script, you can check out my blog article: http://learn-powershell.net/2013/01/28/report-the-crashonauditfail-setting-on-your-computers/

Do not forget that this function must be loaded into the current PowerShell session by dot sourcing the script:

 

PowerShell
Edit|Remove
. .\get-crashonauditfail.ps1
 

 

PowerShell
Edit|Remove
Get-CrashOnAuditFail -Computername Server1