Summary: Learn how to use Windows PowerShell to map a drive.
How can I use Windows PowerShell to map a drive to a server from a client running Windows 8.1?
Use the New-SmbMapping cmdlet and specify the local path and the remote path, for example:
New-SmbMapping -LocalPath h: -RemotePath \\dc1\Share