Whatever winrm command I issue I get,
The client cannot connect to the destination specified in the request ... Error number: -2144108526 0x80338012
I checked all the usual suspects. The service is running. All updates have been applied.
I would like to uninstall the WinRM service and reinstall but I can't find WinRM listed as a "Windows Feature". Is there a way to reset/reinstall this function?
This is a newly installed Standard Windows 2012 server. It was upgraded from Windows 2008 RS Web Server.
Check your http.sys:
netsh http show iplist
to confirm that you are listening on the loopback address. if not, add 127.0.0.1 to the list of listeners.In my case it was due to an old IP in the iplist. You can remove IP addresses with the following command:
netsh http delete iplisten 10.0.0.0
In my case it happened when I promoted stand alone server to DC. It was some strange issue with Network Service account that WinRM service are using. I set the service to use local account (which seems quite stupid for domain controller) and have got an error, then I set again to use network service. Then started the service, ran WinRM quickconfig and it works.