/ 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.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
winrm set winrm/config/client `@`{TrustedHosts=`"`COMPUTER_NAME`"`}