Add Trusted Host - powershell - winrm

/ Published in: Windows PowerShell
Save to your folder(s)

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.

Copy this code and paste it in your HTML
  1. winrm set winrm/config/client `@`{TrustedHosts=`"`COMPUTER_NAME`"`}

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.