net use Z: /delete
net use Z: \\Server\Share /persistent:yes To use different credentials: map a network drive windows 11
Mapping a network drive in Windows 11 is a practical way to create a persistent shortcut to a shared folder or storage device on your network (such as a NAS, another PC, or an external drive connected to your router). Once mapped, the drive appears under "This PC" with its own letter (e.g., Z:), making it as easy to access as your local hard drive. net use Z: /delete net use Z: \\Server\Share