One really easy way to start Device Manager in any version of Windows is from the Command Prompt.
What to Know
- The Device Manager run command is handy to know for starting the Device Manager, updating drivers, and more.Enter devmgmt.msc into Command Prompt.You can also open Device Manager in Windows 11, 10, 8, 7, and Vista using a Control Panel applet.
Just type the devmgmt.msc command, or one of the other three we describe 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.
Instructions in this article apply to Windows 11, Windows 10, Windows 8, Windows 7, Windows Vista, and Windows XP.
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.
Are you uncomfortable working with commands? There are plenty of other ways to open Device Manager in Windows for help.
Follow these easy steps to access Device Manager from the Command Prompt:
- Open Command Prompt. Search for cmd in the Start menu or search bar in most versions of Windows.
- You could also do so with administrative privileges by opening an elevated Command Prompt, but you don’t 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 Cortana or the search bar in newer versions of Windows.
- The primary way to open the Run dialog box is with the keyboard: Press and hold the Windows key, and then press R once. Another way is through Task Manager, which you might do if the Windows desktop has crashed and you can only open Task Manager; to do that, go to Run new task at the top (Windows 11) or File > Run new task, and then enter one of the commands below.
- Once either Command Prompt or the Run box is open, type either of the following, and then press Enter:
- devmgmt.msc
- or
- mmc devmgmt.msc
- Device Manager should open immediately.
- 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.
- 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 11, 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.
Open Command Prompt. Search for cmd in the Start menu or search bar in most versions of Windows.
You could also do so with administrative privileges by opening an elevated Command Prompt, but you don’t 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 Cortana or the search bar in newer versions of Windows.
The primary way to open the Run dialog box is with the keyboard: Press and hold the Windows key, and then press R once. Another way is through Task Manager, which you might do if the Windows desktop has crashed and you can only open Task Manager; to do that, go to Run new task at the top (Windows 11) or File > Run new task, and then enter one of the commands below.
Once either Command Prompt or the Run box is open, type either of the following, and then press Enter:
devmgmt.msc
or
mmc devmgmt.msc
Device Manager should open immediately.
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.
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 of them, actually:
control /name Microsoft.DeviceManager
control hdwwiz.cpl
Both work equally well but must be executed from Command Prompt or the Run dialog box, not from Cortana or other universal search boxes.
Device Manager Resources
Here are some articles with more information and tutorials regarding Device Manager:
No matter how you get it to open—via Control Panel, Run, a desktop shortcut, Command Prompt, a BAT file, PowerShell, etc.—Device Manager works the same, looks the same, and has the exact same features. You’re just picking one of several shortcuts to open the file.
How Do I Enable a Device in Device Manager in Windows?
How Do I Disable a Device in Device Manager in Windows?
How Do I View a Device’s Status in Windows?
Why Is There a Red X in Device Manager?
Why Is There a Black Arrow in Device Manager?
Fixing a Yellow Exclamation Point in Device Manager
Device Manager Error Codes
How do I run Device Manager through CMD as an Administrator?
Open the cmd prompt by pressing the Windows key + R and typing in cmd, then press Ctrl + Shift + Enter. Input your administrator account credentials when prompted, then type devmgmt.msc and press Enter.
How do I turn off my laptop keyboard with Device Manager from CMD?
First you’ll need to uninstall the keyboard from Device Manager. From the cmd, right-click Command Prompt and select Run as Administrator. Next, type in sc config i8042prt start= disabled and press Enter. Finally, close the cmd and restart your laptop.
Open the cmd prompt by pressing the Windows key + R and typing in cmd, then press Ctrl + Shift + Enter. Input your administrator account credentials when prompted, then type devmgmt.msc and press Enter.
First you’ll need to uninstall the keyboard from Device Manager. From the cmd, right-click Command Prompt and select Run as Administrator. Next, type in sc config i8042prt start= disabled and press Enter. Finally, close the cmd and restart your laptop.
Get the Latest Tech News Delivered Every Day