我正在运行 Windows 7 x64 虚拟机中的 PowerShell。我在主机上设置了一个共享文件夹,映射为网络驱动器(Z:)。当我正常运行 PS 时,我可以很好地访问该驱动器,但如果我以“管理员身份”运行它,它会告诉我:
Set-Location : Cannot find drive. A drive with the name 'Z' does not exist.
At line:1 char:13
+ Set-Location <<<< Z:
+ CategoryInfo : ObjectNotFound: (Z:String) [Set-Location], DriveNotFoundException
+ FullyQualifiedErrorId : DriveNotFound,Microsoft.PowerShell.Commands.SetLocationCommand
如何以管理员身份访问网络驱动器?