net use Z: /delete PowerShell offers even more control and is ideal for advanced automation.
The basic command structure is:
$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
New-PSDrive -Name "DriveLetter" -PSProvider FileSystem -Root "\\Computer\Share" -Credential (Get-Credential) -Persist
You can do this by clicking the folder icon on the taskbar, pressing Win + E on your keyboard, or double-clicking any folder on your desktop. net use Z: /delete PowerShell offers even more
Open This PC . Under “Network locations,” you will see your new drive with the assigned letter. Double-click it to browse files as if they were local. Method 2: Using the Command Prompt (net use) For IT professionals or those who prefer keyboards over mice, the net use command is fast and scriptable.
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. Under “Network locations,” you will see your new
The syntax is: