Aug 11, 2011

Powershell remote sessions and access to network resources


It seems I cannot access network resources in a remote Powershell session. This is using Powershell v2. Both the local and remote computers are on the same domain.

As an example, if I am on MachineA and connect to MachineB via Enter-PSSession MachineB, then from there execute something like gci \MachineASomeShare, I get an error: “Cannot find path ‘\MachineASomeShare’ because it does not exist”. If I execute the identical command directly from MachineB, I get the results I expect.

I’ve tried to grant ‘read’ permissions to ‘SomeShare’ to ‘Everyone’ and to the machine account of the remote machine directly. It made no difference.

Is there a configuration change I can make that will allow this to work?


You need to use “-authentication CredSSP” to double-hop like that.

Here’s a good link:

Related posts:

  1. Powershell remote access denied
  2. Remote Control Disconnects Remote Desktop Sessions on Windows 2008
  3. Remote access Windows from Mac OSX?
  4. using remote MS Access database which connects to remote SQL server
  5. Cannot get CredSSP authentication to work in PowerShell

Leave a comment