Link to home
Start Free TrialLog in
Avatar of agentkolb
agentkolbFlag for United States of America

asked on

How do I repair WinRM?

I have a Windows Server 2008 Standard box with Exchange 2010 on it. Exchange 2010 can't connect to itself via WinRM and reports errors. This was all covered in a previous Exchange post at https://www.experts-exchange.com/questions/24986425/Why-can't-the-Exchange-Management-Console-contact-the-Exchange-Server.html

I need to figure out how to repair or reinstall WinRM.

When I run winrm quickconfig I get the following error:

WinRM already is set up to receive requests on this machine.
WSManFault
    Message = The WinRM client cannot complete the operation within the time spe
cified. Check if the machine name is valid and is reachable over the network and
 firewall exception for Windows Remote Management service is enabled.

Error number:  -2144108250 0x80338126
The WinRM client cannot complete the operation within the time specified. Check
if the machine name is valid and is reachable over the network and firewall exce
ption for Windows Remote Management service is enabled.

I have also ensured the ports were opened in the Windows Firewall properly and that Group Policy wasn't controlling any Remote Management.

I am stumped. One day it was working fine and the next it was not. No changes were made that I know of.

I appreciate any and all of your help!
Avatar of NJComputerNetworks
NJComputerNetworks
Flag of United States of America image

Avatar of Glen Knight
Can you try repairing the pre-requisites by running the script here for the appropriate roles you have installed: http://technet.microsoft.com/en-us/library/bb691354.aspx

please note the script is different for R2
For a remote server that is running a Full Installation of Windows Server 2008 R2
Method 1
Log on as an administrator to the remote server by using the console or by using Remote Desktop Services.
Start Server Manager.
On the Server Summary page, click Configure Server Manager Remote Management.
Click Enable remote management of this server from other computers, and then click OK.
Connect to the remote server by using Server Manager.

Note You do not have to restart the remote server.
Avatar of agentkolb

ASKER

Demazter - tried it already

NJ your first two items did not work however the last one - when I checked it, Server Manager Remote Management was already enabled. When I disabled it (to later re enable it) - it timed out and couldn't connect to the WinRM agent.

I can't find where I can actually remove WinRM, its not listed in features or in installed programs, I also don't see where I can re download / install this.

Thoughts?
ASKER CERTIFIED SOLUTION
Avatar of agentkolb
agentkolb
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Remove WinRM on Windows Vista and Windows Server 2008
You need to be assigned permissions before you can perform this procedure. To see what permissions you need, see the "PowerShell and WinRM installation" entry in the Exchange and Shell Infrastructure Permissions topic.

In Control Panel, in Programs, open Programs and Features.

Uninstall any instances of Windows Remote Management that appear in the installed programs list or the installed updates list. WinRM might be listed as a Windows update with one of the following Knowledge Base articles numbers:

KB936059

KB950099

Note:  
You might need to click the View installed updates link in the Tasks sidebar to view currently installed updates.  


Source: http://technet.microsoft.com/en-us/library/dd351188.aspx#WinRM
That was actually one of the basic troubleshooting steps listed in the blog link I posted:
http://technet.microsoft.com/en-us/library/dd351188.aspx#WinRM


Troubleshoot WinRM

Common Issues:

1. If the ISA2004 firewall client is installed on the computer, it can cause a Web Services for Management (WS-Management) client to stop responding. To avoid this issue, install ISA2004 Firewall SP1.

2. Antivirus software can prevent proper WinRM communication. Disable antivirus software and reboot the machine if the Antivirus software is known to scan processes and protocols, or if there is any doubt about the software.
I had the same problem as agentholb, AVG 9.  
I removed it for the time being, but the deeper quesstion is, what AV solutions are people using on servers like Exchange Servers that dont require a ton of configuration and don't break things?