Forum Discussion
Hi I realize this is an old post but just incase anyone is looking for a simple list of what to check to get WinRM working i have collated some steps.
Enable WinRM with the below;
Open Powershell as admin on host that needs to be monitored.
On domain Servers run > Enable-PSRemoting -Force
For workgroup Servers run > Enable-psremoting -force -skipnetworkprofilecheck
On Both Domain and Workgroup run > Set-Item WSMan:\localhost\Client\TrustedHosts -Value 'collectorip1,collectorip2,collectorip3' -Concatenate
Check result - Get-Item WSMan:\localhost\Client\TrustedHosts
If above is done and still not working try below;
This sets up the listener;
winrm quickconfig
Also you can remove any WinHttp traffic proxy with;
netsh winhttp show proxy
netsh winhttp reset proxy
If on a public domain run;
Set-NetFirewallRule -Name "WINRM-HTTP-In-TCP-PUBLIC" -RemoteAddress Any
Commands for testing Remote PS session from collector;
Test-WsMan <Target IP>
Invoke-Command -ComputerName <TargetIP> -ScriptBlock { Get-ChildItem C:\ } -credential domain\username
https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_remote_troubleshooting?view=powershell-7.4