CompTIA A+ Core 2 (220-1102) — Question 261

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?

Answer options

Correct answer: B

Explanation

The correct answer is B, 'net use', which is specifically designed for mapping network drives in Windows. Option A, 'gpupdate', is used for updating Group Policy settings, while C, 'hostname', displays the name of the computer, and D, 'dir', lists directory contents. None of these options can be used to map a drive.