Menu
What is msdt.exe? The genuine msdt.exe file is a software component of Microsoft Windows by Microsoft. Windows is an operating system. Microsoft Distributed Transaction is a component of Windows that is responsible for coordinating transactions across several resource managers. Windows 10 CTP: How To Run Microsoft Support Diagnostic Tool. Table of Contents. How To launch Microsoft Support Diagnostic Tool In the Start Search type in MSDT and hit the Enter key. You can also launch the same from Run menu. (MSDT) when it is used with Windows 7. 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. Windows Commands topic for. msdt.; 2 minutes to read +1; In this article. Invokes a troubleshooting pack at the command line or as part of an automated script, and enables additional options without user input. How To Run Microsoft Support Diagnostic Tool in Windows 10 CTP Revision 6 posted to TechNet Articles by Mohamed El-Qassas MVP on 6/15/2017 2:58:45 PM Table of Contents.
Msdt Passkey For Windows 10 Free
-->How To launch Microsoft Support Diagnostic Tool In the Start Search type in MSDT and hit the Enter key. You can also launch the same from Run menu. How shall I get the Passkey? Contact Microsoft Support for your problem. To use the tool, follow the instructions from Microsoft Support and answers accordingly.
Applies To: Windows 7, Windows Server 2008 R2, Windows Server 2012, Windows 8
Invokes a troubleshooting pack at the command line or as part of an automated script, and enables additional options without user input.
Syntax
Parameters
The following table includes the parameters and options supported by msdt.exe.
Parameter | Description |
---|---|
/id <package name> | Specifies which diagnostic package to run. For a list of available packages, see the Troubleshooting Pack ID in the “Available troubleshooting packs” section later in this topic. |
/path <directory | .diagpkg file | .diagcfg file> | Specifies the full path to a diagnostic package. If you specify a directory, the directory must contain a diagnostic package. You cannot use the /path parameter in conjunction with the /id, /dci, or /cab parameter. |
/dci <passkey> | Prepopulates the passkey field in msdt. This parameter is only used when a support provider has supplied a passkey. |
/dt <directory> | Displays the troubleshooting history in the specified directory. Diagnostic results are stored in the user’s %LOCALAPPDATA%Diagnostics or %LOCALAPPDATA%ElevatedDiagnostics directories. |
/af <answer file> | Specifies an answer file in XML format that contains responses to one or more diagnostic interactions. |
/modal <ownerHWND> | Makes the troubleshooting pack modal to a window designated by the parent Console Window Handle (HWND), in decimal. This parameter is typically used by applications that launch a troubleshooting pack. For more information about obtaining Console Window Handles, see How to Obtain a Console Window Handle (HWND). |
/moreoptions <true | false> | Enables (true) or suppresses (false) the final troubleshooting screen that asks if the user wants to explore additional options. This parameter is typically used when the troubleshooting pack is launched by a troubleshooter that is not part of the operating system. |
/param <parameters> | Specifies a set of interaction responses at the command line, similar to an answer file. This parameter is not typically used within the context of troubleshooting packs created with TSP Designer. For more information about developing custom parameters, see Windows Troubleshooting Platform. |
/advanced | Expands the advanced link on the Welcome page by default when the troubleshooting pack is started. |
/custom | Prompts the user to confirm each possible resolution before it is applied. |
Return codes
Troubleshooting packs comprise a set of root causes, each of which describes a specific technical problem. After completing the troubleshooting pack tasks, each root cause returns a state of fixed, not fixed, detected (but not fixable), or not found. In addition to specific results reported in the troubleshooter user interface, the troubleshooting engine returns a code in the results describing, in general terms, whether or not the troubleshooter fixed the original problem. The return codes are shown in the following table.
Return Code | Explanation |
---|---|
-1 | Interruption: The troubleshooter was closed before the troubleshooting tasks were completed. |
0 | Fixed: The troubleshooter identified and fixed at least one root cause, and no root causes remain in a not fixed state. |
1 | Present, but not fixed: The troubleshooter identified one or more root causes that remain in a not fixed state. This code is returned even if another root cause was fixed. |
2 | Not found: The troubleshooter did not identify any root causes. |
Available troubleshooting packs
Troubleshooting packs that are used by the Troubleshooting Engine to perform diagnostic tasks are included with all versions of Windows® 7 and Windows Server® 2008 R2 except the Server Core SKU. In addition, some optional operating system features and Microsoft applications include troubleshooting packs. The following table lists troubleshooting packs included with the operating system and with certain features and applications. The Application or Feature Dependency column describes any requirements for the troubleshooting pack to be available; in all cases, Windows 7 or Windows Server 2008 R2 must be installed.
Troubleshooting Pack ID | Description | Application or Feature Dependency | Windows 8 | Windows RT | Windows 7 | Windows Server 2008 | Windows Server 2012 |
---|---|---|---|---|---|---|---|
AeroDiagnostic | Troubleshoots problems displaying Aero effects such as transparency. | Aero Display Theme installed | Deprecated | Deprecated | Yes | No | No |
NetworkDiagnosticsDA | Troubleshoots problems connecting to a workplace network over the Internet using DirectAccess. | DirectAccess installed | Yes | Yes | Yes | Yes | Yes |
DeviceDiagnostic | Troubleshoots problems using hardware and access devices connected to the computer. | None | Yes | Yes | Yes | No | No |
HomeGroupDiagnostic | Troubleshoots problems viewing computers or shared files in a homegroup. | HomeGroup installed | Yes | Yes | Yes | No | No |
NetworkDiagnosticsInbound | Troubleshoots problems with allowing other computers to communicate with the target computer through Windows Firewall. | None | Yes | Yes | Yes | Yes | Yes |
NetworkDiagnosticsWeb | Troubleshoots problems connecting to the Internet or to a specific website. | None | Yes | Yes | Yes | Yes | Yes |
IEBrowseWebDiagnostic | Helps the user prevent add-on problems and optimize temporary files and connections. | Internet Explorer installed | Yes | Yes | Yes | No | No |
IESecurityDiagnostic | Helps the user prevent malware, pop-up windows, and online attacks. | Internet Explorer installed | Yes | Yes | Yes | No | No |
NetworkDiagnosticsNetworkAdapter | Troubleshoots problems with Ethernet, wireless, or other network adapters. | None | Yes | Yes | Yes | No | No |
PerformanceDiagnostic | Helps the user adjust settings to improve operating system speed and performance. | None | Deprecated | Deprecated | Yes | No | No |
AudioPlaybackDiagnostic | Troubleshoots problems playing sounds and other audio files. | Audio output device installed | Yes | Yes | Yes | No | No |
PowerDiagnostic | Helps the user adjust power settings to improve battery life and reduce power consumption. | None | Yes | Yes | Yes | No | No |
PrinterDiagnostic | Troubleshoots problems printing. | None | Yes | Yes | Yes | No | No |
PCWDiagnostic | Helps the user configure older programs so that they can run in the current version of Windows. | None | Yes | No | Yes | Yes | Yes |
AudioRecordingDiagnostic | Troubleshoots problems recording audio from a microphone or other input source. | Audio input device installed | Yes | Yes | Yes | No | No |
SearchDiagnostic | Troubleshoots problems with search and indexing using Windows Search. | Search enabled | Yes | Yes | Yes | No | No |
NetworkDiagnosticsFileShare | Troubleshoots problems accessing shared files and folders on other computers over the network. | None | Yes | Yes | Yes | Yes | Yes |
MaintenanceDiagnostic | Helps the user perform maintenance tasks. | None | Yes | Yes | Yes | No | No |
WindowsMediaPlayerDVDDiagnostic | Troubleshoots problems playing a DVD using Windows Media Player. | Windows Media Player installed | Yes | No | Yes | No | No |
WindowsMediaPlayerLibraryDiagnostic | Troubleshoots problems with adding media files to the Windows Media Player library. | Windows Media Player installed | Yes | No | Yes | No | No |
WindowsMediaPlayerConfigurationDiagnostic | Helps the user reset Windows Media Player settings to the default configuration. | Windows Media Player installed | Yes | No | Yes | No | No |
WindowsUpdateDiagnostic | Troubleshoots problems that prevent Windows Update from performing update tasks. | None | Yes | Yes | Yes | No | No |
Additional references
- For more information about obtaining Console Window Handles, see How to Obtain a Console Window Handle (HWND).
- For more information about developing custom parameters for use with troubleshooting packs, see Windows Troubleshooting Platform.
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.
How to run Troubleshooter in Windows 10
In this post, we will see how to run Hardware, Audio or Sound, Power, Network, Windows Update, System Maintenance, App, and several other Troubleshooters in Windows from the command line using MSDT.exe, via Settings or using FixWin.
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>
Msdt Passkey Generator
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 troubleshoot problems relating to power or battery, run this command:
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
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. |
Run Troubleshooters via Settings
You can also access the Troubleshooters via Windows Settings. Press Win+I to open Settings > Update & security > Troubleshoot. Here you will see all the Troubleshooters. More on this at – Run Troubleshooters using the Troubleshoot page.
Msdt Asking For Passkey Windows 10
Run Troubleshooters using FixWin
Although most of us access these Troubleshooters via Settings or the Taskbar search, there is an easy way! Use our FixWin 10 to open them with a click!
Previously, one could access Troubleshooters via the Control Panel > Troubleshooting applet or download them from the Microsoft website. However, Microsoft is now providing quite the same functionality within the Windows 10 Settings app.
Cheers!
TIP: Download this tool to quickly find & fix Windows errors automatically
Related Posts: