I’m having some issues with what i think is a double-hop problem between servers in two different domains.
On scorch1.test.local I do a “Enter-PSSession app1.corp.local -Credential corp\testuser” in this session i try to do a “Test-Path \app2.corp.local\d$\Data\Pre-release”
But i’m getting the following error:
Test-Path : Access is denied
+ CategoryInfo : PermissionDenied: (\app2.corp.l…ata\Pre-release:String) [Test-Path], UnauthorizedAc
+ FullyQualifiedErrorId : ItemExistsUnauthorizedAccessError,Microsoft.PowerShell.Commands.TestPathCommand
The account corp\testuser is for testing purpose and is in the Administrator Groups of all servers. If i logon directly on app1.corp.local and try to do the same Test-Path it works.
On scorch1.test.local I tried to “Enable-WSManCred -Role Client -Delegation app1.corp.local” and on app1.corp.local “Enable-WSManCred -Role Server” but I get the same error.