1

I'm trying to access a network share in PowerShell 5.1 with elevated permissions executing the following command:

gi "\\192.168.1.1\data"

I'm recieving the following error:

gi : Cannot find path '\\192.168.1.1\data' because it does not exist.
At line:1 char:1
+ gi "\\192.168.1.1\data"
+ ~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (\\192.168.1.1\data:String) [Get-Item], ItemNotFoundException
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetItemCommand

The same command can be executed without any problems when I use PowerShell without elevated permissions.

Any tips?

ell
  • 11
  • 1
  • 2

0 Answers0