Remember that a mapped drive is only as reliable as the network connection and the host computer. Once set up, you’ll enjoy seamless access to your files, whether they’re on a NAS, another Windows PC, or a Linux Samba server. Last updated: Windows 11 22H2 & 23H2. Microsoft occasionally changes menu locations, but the core concepts (net use, New-PSDrive, File Explorer right-click) have remained stable for over a decade.
net use Y: \\PRINTSERVER\Drivers * /USER:DOMAIN\TechUser /PERSISTENT:Yes The * will prompt you to enter the password securely (it won’t be displayed on screen). Type net use alone and press Enter. You’ll see a list of all current network connections.
The basic command structure is:
New-PSDrive -Name "DriveLetter" -PSProvider FileSystem -Root "\\Computer\Share" -Credential (Get-Credential) -Persist
The syntax is:
net use Z: /delete PowerShell offers even more control and is ideal for advanced automation.
$cred = Get-Credential New-PSDrive -Name "Z" -PSProvider FileSystem -Root "\\SECURE\HR" -Credential $cred -Persist To remove a mapped drive in PowerShell: win11 map network drive
Press Win + X and select Windows Terminal (Admin) or Command Prompt (Admin) . Click “Yes” on the UAC prompt.