PowerShell - Map a Network Drive using New-PSDrive

by
Jeremy Canfield |
Updated: August 02 2022
| PowerShell articles
Following is the syntax of the command to map a network drive using PowerShell:
New-PSDrive -Name "<drive letter>" -PSProvider FileSystem -Root "\\UNC\path\to\share" -Persist
Following is an example of the command to map a network drive using PowerShell:
New-PSDrive -Name "Z" -PSProvider FileSystem -Root "\\Example\share" -Persist
Did you find this article helpful?
If so, consider buying me a coffee over at