Posted By

ab1 on 06/15/13


Tagged

winrm


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

nnsense


Add Trusted Host - powershell - winrm


 / Published in: Windows PowerShell
 

Using native commands in powershell can often be difficult because of the need to escape characters. This works for setting the trusted hosts in winrm. This is needed to allow powershell remoting.

  1. winrm set winrm/config/client `@`{TrustedHosts=`"`COMPUTER_NAME`"`}

Report this snippet  

You need to login to post a comment.