I am running PowerShell on a Windows 7 x64 virtual machine. I have a shared folder on the host displayed as a network drive (Z :). When I launch PS, I can access this drive just fine, but if I run it "as an administrator", it will tell me:
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
How to access network drives as an administrator?
powershell uac unc
EMP Jan 20 2018-11-11T00: 00Z
source share