nerdexam
CompTIA

220-1102 · Question #409

A user requires a drive to be mapped through a Windows command line. Which of the following command-line tools can be utilized to map the drive?

The correct answer is B. net use. To map a network drive through the Windows command line, the net use command-line tool is specifically utilized. This command allows users to connect to shared network resources and assign them a local drive letter.

Operating Systems

Question

A user requires a drive to be mapped through a Windows command line. Which of the following command-line tools can be utilized to map the drive?

Options

  • Agpupdate
  • Bnet use
  • Chostname
  • Ddir

How the community answered

(16 responses)
  • A
    6% (1)
  • B
    88% (14)
  • C
    6% (1)

Why each option

To map a network drive through the Windows command line, the `net use` command-line tool is specifically utilized. This command allows users to connect to shared network resources and assign them a local drive letter.

Agpupdate

The `gpupdate` command refreshes Group Policy settings, which is unrelated to mapping network drives directly.

Bnet useCorrect

The `net use` command is the standard Windows command-line utility used to connect to shared network resources, including mapping a drive letter to a network share.

Chostname

The `hostname` command displays or sets the host name of the current machine, which is irrelevant to mapping network drives.

Ddir

The `dir` command lists the contents of a directory, which is a file system navigation command, not a drive mapping command.

Concept tested: Windows command line utilities - net use

Source: https://learn.microsoft.com/windows-server/administration/windows-commands/net-use

Topics

#Windows command line#Network drive mapping#net use command#Operating system utilities

Community Discussion

No community discussion yet for this question.

Full 220-1102 Practice