Hi everybody,
I'm trying to figure out what could cause the issue in Title. Still without progress.
From Server1 I'm executing this code in powershell ISE:
Invoke-Command -ComputerName Server2.domain.com -scriptblock { Get-Process | Export-Csv \\Server1.domain.com\c$\File1.csv }
Then I will get the: "Access to the path '\\Server1\c$\File1.csv' is denied." error message.
Server1 = Windows 2008 R2
Server2 = Windows 2012 Std.
It's very strange, because if I use as Server2 the Windows 2008 machine, it works smoothly. But if I use another machine that run under Windows 2012 then it fails with above error.
I have read many related topics but without any relevant answer.
No, it can't be the double hop issue as I run the script from server1 against server2, but file I'm trying to save back to server1, not to other server(server3).
Is something different on Windows 2012 that needs to be set or configure to avoid of this issue ?
Enable-PSRemoting -Force - done
Executionpolicy set to unrestricted
Both servers uses TrustedHost = * in WinRM config
WinRM quickconfig - done on both servers.