Subscribe now

Map Drive From Command Line __link__ ✰

net use Z: \\server\share

To delete all mapped drives at once (common in logoff scripts): map drive from command line

Interestingly, both Windows 11 and Windows Server 2025 are emphasizing drive-less network locations. You can pin a UNC path ( \\server\share ) to Quick Access without assigning a letter. The command line already supports this via: net use Z: \\server\share To delete all mapped

net use \\server /delete

New-PSDrive -Name "C:\Data\Archive" -PSProvider FileSystem -Root "\\server\archive" -Persist map drive from command line

This maps the share \\server\share to drive letter Z: . If the share requires authentication, net use will prompt you for a username and password. But you can supply them inline for automation:

net use * /delete

Piano Exit Overlay Banner Mobile Piano Exit Overlay Banner Desktop