Start-SetupService -ServiceName winrm; winrm s winrm/config/client/Auth '@{CredSSP="true"}' # If GPO has an override for ...

Start-SetupService -ServiceName winrm;            winrm s winrm/config/client/Auth '@{CredSSP="true"}'            # If GPO has an override for credentials delegation, then the command will not enable            Remove-Item  HKLM:Software\Policies\Microsoft\Windows\CredentialsDelegation -Recurse -ea:SilentlyContinue            Enable-WSManCredSSP -DelegateComputer * -Role Client -Force            # Update some security settings for CredSSP            new-item  HKLM:Software\Policies\Microsoft\Windows\CredentialsDelegation -Force            set-itemproperty -path HKLM:Software\Policies\Microsoft\Windows\CredentialsDelegation -Name AllowFreshCredentials -Value 1 -Type DWORD -Force            set-itemproperty -path HKLM:Software\Policies\Microsoft\Windows\CredentialsDelegation -Name AllowFreshCredentialsWhenNTLMOnly -Value 1 -Type DWORD -Force            set-itemproperty -path HKLM:Software\Policies\Microsoft\Windows\CredentialsDelegation -Name ConcatenateDefaults_AllowFresh -Value 1 -Type DWORD -Force            set-itemproperty -path HKLM:Software\Policies\Microsoft\Windows\CredentialsDelegation -Name ConcatenateDefaults_AllowFreshNTLMOnly -Value 1 -Type DWORD -Force            new-item -path HKLM:Software\Policies\Microsoft\Windows\CredentialsDelegation\AllowFreshCredentials -Force            set-itemproperty -path HKLM:Software\Policies\Microsoft\Windows\CredentialsDelegation\AllowFreshCredentials -Name "1" -Value "WSMAN/*" -Force            new-item -path HKLM:Software\Policies\Microsoft\Windows\CredentialsDelegation\AllowFreshCredentials -Force            set-itemproperty -path HKLM:Software\Policies\Microsoft\Windows\CredentialsDelegation\AllowFreshCredentials -Name "1" -Value "WSMAN/*" -Force