Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


How do I repair WinRM?

Posted on 2009-12-22
Medium Priority
Last Modified: 2012-05-08
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 http://www.experts-exchange.com/Software/Server_Software/Email_Servers/Exchange/Q_24986425.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.
    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!
Question by:agentkolb
LVL 33

Expert Comment

ID: 26106719
LVL 33

Expert Comment

ID: 26106727
LVL 74

Expert Comment

by:Glen Knight
ID: 26106732
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
 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

LVL 33

Expert Comment

ID: 26106749
LVL 33

Expert Comment

ID: 26106764
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.
LVL 33

Expert Comment

ID: 26106778

Author Comment

ID: 26106812
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.


Accepted Solution

agentkolb earned 0 total points
ID: 26106892
I figured it out! My AVG antivirus was blocking WinRM and the Management service from actually running even though the services were started and no errors in the event log.

Thanks all!
LVL 33

Expert Comment

ID: 26106908
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:



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
LVL 33

Expert Comment

ID: 26106918
LVL 33

Expert Comment

ID: 26106941
That was actually one of the basic troubleshooting steps listed in the blog link I posted:

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.

Expert Comment

ID: 30528215
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?

Featured Post

[Webinar On Demand] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article, I will demonstrate that how to do a PST migration from Exchange Server to Office 365. This method allows importing one single PST, or multiple PST's at once.
Exchange database can often fail to mount thereby halting the work of all users connected to it. Finding out why database isn’t mounting is crucial and getting the server back online. Stellar Phoenix Mailbox Exchange Recovery is a champion product t…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Suggested Courses

580 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question