Wednesday, August 5, 2020

Add machine to trusted hosts for ps remoting

enter-pssession <mahinename> -credential $(get-credential)

If we get any trusted hosts error, then use below command to add remote machine to trusted hosts list.

set-item wsman:\localhost\Client\TrustedHosts -Concatenate -Value <machinename>

No comments:

Post a Comment