You can run a built-in Troubleshooter in Windows 10/8/7 from the command line. Microsoft Support Diagnostic Tool or MSDT.exe can be used to invoke and launch any Windows Troubleshooting Pack or Troubleshooter from the command line.
Run built-in Windows Troubleshooter from the command line
To run any Troubleshooter open an elevated command prompt and run these commands:
To invoke built-in Troubleshooters, use this command:
msdt.exe /id <diagnostic_id>To run a custom-built troubleshooter stored locally use this command line:
msdt.exe /path <path_to_troubleshooter>To run a troubleshooter which is in a .diagcab file format, use this:
msdt.exe /cab <path_to_diagcab>For instance if you want to bring up the built-in Power Troubleshooter to troubleshoots problems playing sounds and other audio files, run this command:
msdt.exe /id PowerDiagnostic
Once you hit Enter, you will see the Power Troubleshooter pop-up. Similarly if you know the Diagnostic Pack ID of any Troubleshooter, you will be able to invoke it using the command line.

Here is a list of some Troubleshooting Pack ID’s sourced from
TechNet, for your ready reference



twc