VBS Script To Disable Error Reporting On The Local Machine

 

This VBS script will use the registry to disable the PC health Error reporting on the local machine from which the script is executed on.

 

VBS Script:

 

strKey = "HKLM\Software\Microsoft\PCHealth\ErrorReporting\DoReport"

strType = "REG_DWORD"

strValue = "0"

 

Set WSHShell = WScript.CreateObject("WScript.Shell")

WSHShell.RegWrite strKey, strValue, strType

 

MsgBox "Error Reporting Is Disabled"

 

Published Sunday, October 14, 2007 2:46 PM by dhite
Filed under:

Comments

No Comments