Learn how to run Hardware, Audio, Power Network, Windows Update, System Maintenance, App, Sound, etc, Troubleshooters in Windows 10/8/7 from the command line using MSDT.exe.
From:
- [WayBack] How to run Troubleshooter in Windows 10 from the command line.
- [WayBack] Msdt | Microsoft Docs | Microsoft Docs
Summary:
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>
List of diagnostic IDs:
Troubleshooting Pack ID Description Application or Feature Dependency AeroDiagnostic Troubleshoots problems displaying Aero effects like transparency. Aero Display Theme installed NetworkDiagnosticsDA Troubleshoots problems connecting to a workplace network over the Internet using Direct Access. Direct Access installed DeviceDiagnostic Troubleshoots problems using hardware and access devices connected to the computer. HomeGroupDiagnostic Troubleshoots problems viewing computers or shared files in a homegroup. HomeGroup installed NetworkDiagnosticsInbound Troubleshoots problems with allowing other computers to communicate with the target computer through Windows Firewall. NetworkDiagnosticsWeb Troubleshoots problems connecting to the Internet or to a specific Web site. IEDiagnostic Helps the user prevent add-on problems and optimize temporary files and connections. Internet Explorer installed IESecurityDiagnostic Helps the user prevent malware, pop-ups, and online attacks. Internet Explorer installed NetworkDiagnosticsNetworkAdapter Troubleshoots problems with Ethernet, wireless, or other network adapters. PerformanceDiagnostic Helps the user adjust settings to improve operating system speed and performance. AudioPlaybackDiagnostic Troubleshoots problems playing sounds and other audio files. Audio output device installed PowerDiagnostic Helps the user adjust power settings to improve battery life and reduce power consumption. PrinterDiagnostic Troubleshoots problems printing. PCWDiagnostic Helps the user configure older programs so that they can run in the current version of Windows. AudioRecordingDiagnostic Troubleshoots problems recording audio from a microphone or other input source. Audio input device installed SearchDiagnostic Troubleshoots problems with search and indexing using Windows Search. Search enabled NetworkDiagnosticsFileShare Troubleshoots problems accessing shared files and folders on other computers over the network. MaintenanceDiagnostic Helps the user clean up unused files and shortcuts and perform other maintenance tasks. WindowsMediaPlayerDVDDiagnostic Troubleshoots problems playing a DVD using Windows Media Player. Windows Media Player installed WindowsMediaPlayerLibraryDiagnostic Troubleshoots problems with adding media files to the Windows Media Player library. Windows Media Player installed WindowsMediaPlayerConfigurationDiagnostic Helps the user reset Windows Media Player settings to the default configuration. Windows Media Player installed WindowsUpdateDiagnostic Troubleshoots problems that prevent Windows Update from performing update tasks.
–jeroen