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.
$cred = Get-Credential New-PSDrive -Name "Z" -PSProvider FileSystem -Root "\\SECURE\HR" -Credential $cred -Persist To remove a mapped drive in PowerShell:
Press Win + X and select Windows Terminal (Admin) or Command Prompt (Admin) . Click “Yes” on the UAC prompt.
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.