Cmd Command To Map Network Drive ((hot)) -

net use Z: /delete Always confirm by running net use again to ensure it is gone. To wipe all current network connections in one command (useful for login scripts to start fresh):

net use /verbose To remove a specific mapped drive: cmd command to map network drive

:: Map project drive with specific credentials net use Z: \ProjectServer\CurrentProjects /user:CONTOSO\projectuser * net use Z: /delete Always confirm by running

echo All drives mapped successfully. pause cmd command to map network drive

net use /persistent:yes If your server or share name contains spaces, enclose the entire UNC path in double quotes :

@echo off echo Mapping network drives for user %username%... :: Delete existing connections to start clean net use * /delete /yes

net use Z: "\\Server01\Project Files\Q1 Reports" You can explicitly specify the domain and even the domain controller:


×

Report Game

Experiencing a black screen or freeze in full-screen mode? Just click on the game screen to resume normal play.

Try Refresh the page if you encounter black screen.