FreeKB - PowerShell New-PSDrive command (map a network drive)
PowerShell - New-PSDrive command (map a network drive)

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

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 45e62 in the box below so that we can be sure you are a human.