Bootstrap FreeKB - PowerShell - Map a Network Drive using New-PSDrive
PowerShell - Map a Network Drive using New-PSDrive

Updated:   |  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 Buy Me A Coffee



Comments


Add a Comment


Please enter b94529 in the box below so that we can be sure you are a human.