Question

Difficulty: MediumMicrosoft Command-Line Tools

A field technician is configuring a Windows workstation to access a shared network folder named Data on a file server (`\\FS01\Data`). The shared folder needs to be mapped to local drive letter `M:` and must automatically reconnect every time the user logs into the system. Which command should the technician run in Command Prompt to accomplish this goal?

  1. net use M: \\FS01\Data /persistent:yesAnswer
  2. B
    net use M: \\FS01\Data /reconnect:true
  3. C
    net share M:=\\FS01\Data /persistent:yes
  4. D
    mount -t cifs \\FS01\Data M:

Answer

The command `net use M: \\FS01\Data /persistent:yes` correctly maps the network share to drive letter M: and configures it to reconnect automatically upon user logon.
The `net use M: \\FS01\Data /persistent:yes` command assigns the remote UNC path `\\FS01\Data` to local drive letter `M:` and ensures the connection persists across user sessions via the `/persistent:yes` switch.

Step-by-Step Solution

1
Identify the required command-line utility for mapping network shares in Windows.
The `net use` command is the standard Windows command-line tool used to connect to shared network resources.
Mapping a remote file server path (`\\FS01\Data`) to a local drive letter (`M:`) requires the client drive mapping utility.
2
Determine the necessary parameters for target drive letter, target UNC path, and reconnection behavior.
Drive letter is `M:`, UNC path is `\\FS01\Data`, and the reconnection switch is `/persistent:yes`.
Without `/persistent:yes`, the mapped drive connection would terminate when the user logs off.

Key Concept

Mapping network drives and managing persistent connections using `net use`
Rate this question