Hello!
I have been tackling this problem for a few days now and I just can't find the answer.
I want to execute scripts remotely in parallel so that each of remote machine will run the script with their own resources.
Below is just the simple script in the local machine server1
$Folder = \\server1\folder\subfolder
GCI $folder
It works fine it I call that through my client with this I am using in my client
invoke-command -computername server -scriptblock {powershell.exe C:\filepath\script.ps1}
But if I change the script inside to look at another machine server 2 and do
$folder = \\server2\folder\subfolder
It generates an error that it cannot find that path when trying to call GCI remotely. Note that it still works if the script is run locally.
I did some research and I see about the double-hop using credssp but I just can't get it to work.
Any help would be appreciated.