Powershell remoting – Policy does not allow the delegation of user credentials

Do the following on the server: Enable-WSManCredSSP -Role Server Do the following on the client: set-item wsman:localhost\client\trustedhosts -value * Enable-WSManCredSSP -Role Client –DelegateComputer * Use gpedit.msc on the client to enable Delegating Fresh Credentials to WSMAN/*: Expand Local Computer Policy, expand Computer Configuration, expand Administrative Templates, expand System, and then click Credential Delegation. In the … Read more

How to add more than one machine to the trusted hosts list using winrm

I prefer to work with the PSDrive WSMan:\. Get TrustedHosts Get-Item WSMan:\localhost\Client\TrustedHosts Set TrustedHosts provide a single, comma-separated, string of computer names Set-Item WSMan:\localhost\Client\TrustedHosts -Value ‘machineA,machineB’ or (dangerous) a wild-card Set-Item WSMan:\localhost\Client\TrustedHosts -Value ‘*’ to append to the list, the -Concatenate parameter can be used Set-Item WSMan:\localhost\Client\TrustedHosts -Value ‘machineC’ -Concatenate

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)