How to Access Device Manager From the Command Prompt

Launch Device Manager From the Command Line With This Trick

Command Prompt and Device Manager open on a Windows 10 desktop

One really easy way to start Device Manager in any version of Windows is from the Command Prompt.

Just type the correct command as we have it below, and voilà... Device Manager starts right up!

Besides being one of the fastest ways to open it, knowing the run command for Device Manager should come in handy for other things too. Advanced tasks like writing command-line scripts would call for the Device Manager command, as well as other programming tasks in Windows.

Are you uncomfortable working with commands? You shouldn't be, but there are plenty of other ways to start Device Manager, too. See How to Open Device Manager in Windows for help.

How to Access Device Manager From the Command Prompt

Time Required: Accessing Device Manager from Command Prompt, or another command-line tool in Windows, should take less than a minute, even if this your first time executing commands.

You can open Device Manager via a command line no matter what version of Windows you're using - Windows 10Windows 8Windows 7Windows Vista, or Windows XP. The command is the same in each of these Windows operating systems.

Follow these easy steps to access Device Manager from the Command Prompt:

  1. Command Prompt in Windows 10 Start Menu

    You could also do so with administrative privileges by opening an elevated Command Prompt, but know that you do not need to open Command Prompt with admin rights in order to get to Device Manager from the command line.

    Command Prompt is the most all-inclusive way to run commands in Windows, but the following steps could be performed via the Run tool, or even from Cortona or the search bar in newer versions of Windows.

    You can open the Run tool using the Windows Key + R keyboard shortcut.

  2. Once open, type either of the following, and then press Enter:



    mmc devmgmt.msc 

    Device Manager should open immediately.

    devmgmt.msc command entered in Command Prompt

    MSC files, which are XML files, are used in these commands because Device Manager is a portion of the Microsoft Management Console, which is the built-in tool included with Windows that opens these kinds of files.

  3. You can now use Device Manager to update drivers, view a device's status, manage the system resources that Windows has assigned to your hardware, and more.

Two Alternative Device Manager CMD Methods

In Windows 10, 8, 7, and Vista, Device Manager is included as an applet in Control Panel. This means that there's an associated Control Panel applet command available.

Two of them, actually:

control /name Microsoft.DeviceManager


control hdwwiz.cpl

Both work equally well but must be executed from Command Prompt or Run, not from Cortona or other universal search boxes.

Device Manager Resources

No matter how you get it to open - via Control Panel, Run, a Desktop shortcut, Command Prompt, etc. - Device Manager works the same.

Here are some articles with more information and tutorials regarding Device Manager: