:: Map department drives net use H: \Fileserver01\HomeFolders%username% net use S: \Fileserver01\Shared\Sales net use P: \PrintServer01\Scans
net use * /delete You will be prompted: You have these remote connections: ... Continue with operation? (Y/N) . To suppress the prompt, pipe Y or use echo : cmd command to map network drive
net use Z: "\\Server01\Project Files\Q1 Reports" You can explicitly specify the domain and even the domain controller: cmd command to map network drive
net use Z: \\Server01\Projects /user:DOMAIN\john.doe P@ssw0rd123 Persistent vs. Temporary Mappings By default, mapped drives are persistent —they reconnect automatically after you log off and back on. To create a temporary mapping that disappears when you log off, use: cmd command to map network drive