March 10th, 2015

PowerTip: Use PowerShell to Map a Drive

Doctor Scripto
Scripter

Summary: Learn how to use Windows PowerShell to map a drive.

Hey, Scripting Guy! Question How can I use Windows PowerShell  to map a drive to a server from a client running Windows 8.1?

Hey, Scripting Guy! Answer Use the New-SmbMapping cmdlet and specify the local path and the remote path, for example:

New-SmbMapping -LocalPath h: -RemotePath \\dc1\Share

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.

Feedback