I always accessed a network location, using UNC path (with Hidden-Share) using normal Set-Location
cmdlet (see example below) which works fine, but when I run the PS session as Admin, the UNC path becomes inaccessible, can someone please explain why?
Example:
In Non-admin session:
PS C:\> cd \\srv01\c$\Temp\
PS Microsoft.PowerShell.Core\FileSystem::\\srv01\c$\Temp> *notice: prompt changed to show remote location*
Elevated PowerShell session (Run as Administrator):
PS C:\> cd \\srv01\c$\Temp\
cd : Cannot find path '\\srv01\c$\Temp\' because it does not exist.
Thanks in advance.