我在 Windows7x64虚拟机中运行 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
如何以管理员身份访问网络驱动器?