Map a Network Drive Using PowerShell

Map a Network Drive Using PowerShell

Map a network drive with PowerShell.

Q. How do I map a drive to a remote share using PowerShell?

A. To map a network drive using PowerShell, use the New-PSDrive cmdlet. For example:

New-PSDrive –Name "T" -PSProvider FileSystem -Root "\\machine\share" -Persist

 

Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish