How to map a network drive using PowerShell

by

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

### Add a Comment

We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.

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