net use Z: \\fileserver\shareddata /persistent:yes Alternatively, set persistence globally for all future mappings:
net use /persistent:yes net use Z: \\fileserver\shareddata If you need to access a share with credentials different from your current Windows login: map network drive windows 11 command line
Once you've mastered these commands, consider creating batch scripts to run at login via Task Scheduler or placing them in the Startup folder ( shell:startup ) for seamless, automated drive connections every time you boot. map network drive windows 11 command line
net use Z: /delete /y 1. Batch Script for Multiple Drives Create a .bat file with the following: map network drive windows 11 command line