How To Access Device Manager From the Command Prompt

Launch Device Manager From the Command Line with This Trick

Screenshot of a Command Prompt window with cmd commands that execute Device Manager
Command Prompt & Device Manager (Windows 10).

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

Just type the correct command as I 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.

Tip: 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.

Note: 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. Open Command Prompt normally or do so with administrative privileges by opening an elevated Command Prompt.

    Tip: 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.

    Note: You can open the Run tool using the Windows Key + R keyboard shortcut.
     
  1. Once open, type either of the following, and then press Enter:
    devmgmt.msc 
    or
    mmc devmgmt.msc
    
    Device Manager should open immediately.

    Tip: 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.
     
  1. 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

or

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 Manage 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: