220-1102 Question 108
Single answernet useA technician is remotely assisting a Windows 10 user who needs temporary access to a shared folder on a file server named FS1. The share name is PublicDocs. The user is logged in with a local account, not a domain account, so the technician must connect to the share using separate domain credentials without making the mapping persistent after a reboot. Which command should the technician use?
- A
net use Z: \FS1\PublicDocs /user:CONTOSO\jlee P@ssw0rd /persistent:no
- B
net use \FS1\PublicDocs /user:CONTOSO\jlee /savecred
- C
net share Z=\FS1\PublicDocs /user:CONTOSO\jlee /persistent:no
- D
net use Z: \FS1\PublicDocs /persistent:yes
Show answer and explanation
Correct answer: A
Explanation
The best answer is "net use Z: \FS1\PublicDocs /user:CONTOSO\jlee P@ssw0rd /persistent:no" because net use is the standard Windows command-line tool for connecting to shared resources. In this scenario, the technician must do three things: map the remote share to a drive letter, authenticate with alternate credentials, and prevent the mapping from being persistent. The /user switch provides alternate credentials, and /persistent:no prevents automatic reconnection at future logons. By contrast, net share manages shares hosted on the local machine and is not used to access a remote share. Microsoft documentation for net use describes mapping network drives, connecting with alternate credentials, and controlling persistent connections.
- A. Correct.
Correct. The net use command is used to connect to a network share and can map it to a drive letter. Specifying "Z:" maps the share to drive Z, "\FS1\PublicDocs" identifies the UNC path, "/user:CONTOSO\jlee" supplies alternate credentials, and "/persistent:no" ensures the connection is not restored automatically at next logon. This matches the requirement for temporary access using separate domain credentials.
- B. Incorrect.
Incorrect. This command connects to the share but does not map it to a drive letter, which is typically implied when a technician wants the user to access it easily through File Explorer as a temporary mapped drive. In addition, "/savecred" stores credentials for future use, which does not align with the requirement to avoid persistence. It also does not explicitly disable reconnect behavior.
- C. Incorrect.
Incorrect. net share is used to create or manage shares on the local computer, not to connect to a remote shared folder. This is a common confusion between sharing a resource and mapping or accessing an existing network share.
- D. Incorrect.
Incorrect. This command maps the drive but does not provide the separate domain credentials needed for a user logged in with a local account. Also, "/persistent:yes" makes the mapping reconnect at logon, which is the opposite of the requirement.