Category filter

Enable/disable Windows Error Reporting with PowerShell scripts

Windows Error Reporting (WER) is a feature in Windows that allows the operating system to collect and send error information to Microsoft when a program crashes or encounters problems. Enabling WER on the device can help send error reports to Microsoft to diagnose issues and improve software reliability. Here’s a script to enable Windows Error Reporting on devices. With Hexnode’s Execute Custom Script remote action, you can deploy the script remotely.

Disclaimer:

The sample scripts provided below are adapted from third-party open-source sites.

PowerShell script

This script checks if Windows Error Reporting is enabled and if not, ensures that error reporting is turned on and set to automatically submit error reports to Microsoft. You can follow the steps to access the output.

  1. Login to your Hexnode UEM portal.
  2. Navigate to the Manage tab.
  3. Select the device for which error reporting is executed.
  4. Go to Action History.
  5. You can find the option Output corresponding to the policy applied.

Enable Windows Error Reporting on Windows devices

Notes:

  • It is recommended to manually validate the script execution on a system before executing the action in bulk.
  • Hexnode will not be responsible for any damage/loss to the system on the behavior of the script.

  • Sample Script Repository