In Windows 11, you can run the troubleshooter from the command line to diagnose and resolve various system issues. A troubleshooter is a built-in tool that can automatically detect and fix common problems related to hardware, network connections, Windows updates, and more. Running the troubleshooter from the command line provides an alternative method to initiate the troubleshooting process.

Run troubleshooter from the command line in Windows 11

To run the troubleshooter from the command line in Windows 11, you can follow these steps:

  1. Open the Command Prompt: Press the Windows key on your keyboard, type “Command Prompt,” and then press Enter.
  2. Run the troubleshooter command: In the Command Prompt window, type the following command and press Enter:
    msdt.exe /id <troubleshooterID>
    

    Replace <troubleshooterID> with the ID of the specific troubleshooter you want to run. The troubleshooter ID is a unique identifier for each troubleshooting pack. For example, if you want to run the Network Adapter troubleshooter, the command would be:

    msdt.exe /id NetworkDiagnosticsNetworkAdapter

    Run troubleshooter from command-line in Windows 11

  3. Follow the troubleshooter prompts: Once you execute the command, the troubleshooter corresponding to the provided ID will start running. It will guide you through a series of steps to diagnose and fix the issue. You may need to provide additional information or perform certain actions as instructed by the troubleshooter.
  4. Review the troubleshooter results: After the troubleshooter completes its analysis, it will display the results on the screen. It will indicate whether any issues were found and whether they were resolved. Additionally, it may provide further instructions or recommendations based on the findings.

List of Troubleshooting Pack IDs for some common troubleshooters in Windows 11

  1. Network Adapter:
    msdt.exe /id NetworkDiagnosticsNetworkAdapter
  2. Internet Connections:
    msdt.exe /id NetworkDiagnosticsInbound
  3. Windows Update:
    msdt.exe /id WindowsUpdate
  4. Bluetooth:
    msdt.exe /id DeviceCenterDevicesAndPrinters
  5. Printer:
    msdt.exe /id Printers
  6. Hardware and Devices:
    msdt.exe /id WindowsHardware
  7. Audio Playback:
    msdt.exe /id AudioPlaybackDiagnostic
  8. Power:
    msdt.exe /id PowerDiagnostic
  9. Display:
    msdt.exe /id Display
  10. Windows Store Apps:
    msdt.exe /id WindowsStoreDiagnostic
  11. System Maintenance:
    msdt.exe /id MaintenanceDiagnostic
  12. Windows Media Player:
    msdt.exe /id WindowsMediaPlayerConfigurationDiagnostic
  13. Windows Network Diagnostics:
    msdt.exe /id NetworkDiagnosticsDiagPackage
  14. Windows Security:
    msdt.exe /id WindowsSecurityDiagnostic
  15. Incoming Connections:
    msdt.exe /id NetworkDiagnosticsInbound
  16. Outgoing Connections:
    msdt.exe /id NetworkDiagnosticsOutbound
  17. Network Adapter Settings:
    msdt.exe /id NetworkDiagnosticsDirect
  18. Shared Folders:
    msdt.exe /id SharedFoldersDiagnostic
  19. Internet Explorer Performance:
    msdt.exe /id IePerfDiagnostic
  20. Windows Media Player Library:
    msdt.exe /id WindowsMediaPlayerLibraryDiagnostic

To run a troubleshooter which is in a .diagcab file format, use this:

msdt.exe /cab <path_to_diagcab>

Run Troubleshooters using Settings app

1. Open Settings by pressing the Windows + I keys.

2. Click on “Systems” > then click “Troubleshoot”.

Run troubleshooter from command-line in Windows 11

3. Click on “Other troubleshooters”.

Run troubleshooter from command-line in Windows 11

4. Here you will see all the troubleshooters. Click on “Run” to run a particular troubleshooter.

Run troubleshooter from command-line in Windows 11

That’s it!

Leave a Reply

Your email address will not be published. Required fields are marked *