Then replace DEVICE-NAME-OR-IP and SHARED-FOLDER for the computer name or IP address of the device hosting the shared folder and the shared name.
In the command, the (*) is the option that allows the system to assign any drive letter that is not already in use. Type the following command to map a drive assigning drive letter automatically and press Enter: net use * \\DEVICE-NAME-OR-IP\SHARED-FOLDER For example, this command maps the ShareOne folder to the computer with the “Z” drive letter: net use Z: \\vm-beta\ShareOne
In the command, replace “Z” with the drive letter not already in use you want to use. Type the following command to map a drive assigning drive letter manually and press Enter: net use Z: \\DEVICE-NAME-OR-IP\SHARED-FOLDER
As a result, run the command as a standard user. Quick note: If you run the command as an administrator, the drive may not mount correctly and won’t appear in File Explorer.