Enable-WSManCredSSP -role Client -DelegationComputer is not working properly every time. So I created this script as workaround. Sometimes you can have problem with command Enable-WSManCredSSP -Role client -DelegateComputer "my host" That is because command has no access for registry editing even when you are running PowerShell as administrator.
- Enable WinRM on both sites - (winrm quickconfig)
- Chceck WinRM configs (winrm get winrm/config/client - winrm get winrm/config/service)
- Set TrustedHosts (Set-Item -Path "WSMan:\localhost\Client\TrustedHosts" -Value '*' -Force)