nerdexam
Microsoft

98-349 · Question #341

You are an intern at a small company. You are learning how to run some of the system management tools from a command line. You want to access Device Manager from a command prompt. Which command…

The correct answer is D. devmgmt.msc. To open Device Manager from the command prompt, you should use the devmgmt.msc command, as Device Manager is an MMC snap-in.

Managing Devices

Question

You are an intern at a small company. You are learning how to run some of the system management tools from a command line. You want to access Device Manager from a command prompt. Which command should you enter?

Options

  • Adevmgmt.cpl
  • Bdevmgmt.dll
  • Cdevmgmt.exe
  • Ddevmgmt.msc

How the community answered

(16 responses)
  • B
    6% (1)
  • D
    94% (15)

Why each option

To open Device Manager from the command prompt, you should use the devmgmt.msc command, as Device Manager is an MMC snap-in.

Adevmgmt.cpl

.cpl files are Control Panel items, but Device Manager is not accessed via a .cpl file.

Bdevmgmt.dll

.dll files are Dynamic Link Libraries, which are code libraries used by programs, not direct commands to launch an application.

Cdevmgmt.exe

While some tools have .exe files, Device Manager is specifically an MMC snap-in, and its direct executable form is not devmgmt.exe.

Ddevmgmt.mscCorrect

The devmgmt.msc command is the correct way to open Device Manager from a command prompt or the Run dialog, because Device Manager is implemented as a Microsoft Management Console (MMC) snap-in with the .msc file extension. Executing this command launches the specific MMC console pre-loaded with the Device Manager snap-in.

Concept tested: Command line tools and MMC snap-ins

Source: https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/mmc

Topics

#command-line utilities#Device Manager#MMC snap-ins

Community Discussion

No community discussion yet for this question.

Full 98-349 Practice