Notes to self about WinRM

By: Kevin | August 22, 2016

Notes to self about WinRM.

On WinRs (client side) box, need to add ‘TrustHost’ to use CLI
winrm set winrm/config/client '@{TrustedHosts="machineA,machineB"}'

Trust all
winrm set winrm/config/client '@{TrustedHosts=“*”}’

List WinRm Listener IP and Port
Winrm enumerate winrm/config/listener
winrm e winrm/config/listener

Enable-PSRemoting
https://technet.microsoft.com/en-us/library/hh849694.aspx

Disable-PSRemoting
https://technet.microsoft.com/en-us/library/hh849690.aspx

 

Check running services

net start

  1. http://www.hurryupandwait.io/blog/understanding-and-troubleshooting-winrm-connection-and-authentication-a-thrill-seekers-guide-to-adventure
  2. https://blogs.technet.microsoft.com/askperf/2010/09/24/an-introduction-to-winrm-basics/
  3. https://msdn.microsoft.com/en-us/library/windows/desktop/aa384470(v=vs.85).aspx