Cannot access network drive in PowerShell running as administrator

前端 未结 7 1967
暗喜
暗喜 2020-12-07 13:23

I\'m running PowerShell in a Windows 7 x64 virtual machine. I have a shared folder on the host mapped as a network drive (Z:). When I run PS normally I can access that drive

7条回答
  •  醉酒成梦
    2020-12-07 13:56

    In the end the fix was simply to re-map the drive letter while running as Administrator:

    net use Z: "\\vmware-host\Shared Folders"
    

    It doesn't have to be done from the same PowerShell instance (or from PowerShell at all) - it's just something that needs to be done once for the entire logon session.

提交回复
热议问题