David Overton's Blog and Discussion Site
This site is my way to share my views and general business and IT information with you about Microsoft, IT solutions for ISVs, technologists and businesses, large and small. I specialise in Windows Intune and SBS 2008.
This blog is purely the personal opinions of David Overton. If you can't find the information you were looking for e-mail me at admin@davidoverton.com.

To find out more about my Windows Intune BOOK - Microsoft Windows Intune 2.0: Quickstart Administration click here

To find out more about my SBS 2008 BOOK - Small Business Server 2008, Installation, Migration and Configuration click here

How to resolve errors like "Cannot connect to the RPC service, make sure your RPC service is running" with Hyper-V Server and Hyper-V Manager
David Overton's Blog

Buy my books

Windows Intune:Quickstart Administration


This is the RAW book (Read as Written).
Click here for more information
Buy or pre-order today

SBS 2008 - Installation, Migration and Configuration

Small Business Server 2008 – Installation, Migration, and Configuration

Buy today in book or e-book form

Request a Review Copy

Twitter

Syndication

In my last post on installing Hyper-V for my home setup I said I had a number of issues.  One was that the Hyper-V Manager kept on showing the error "Cannot connect to the RPC service, make sure your RPC service is running".  This turned out to be several issues.

To start with my Hyper-V box is in a workgroup, so security is manually configured.  Then there is the connection ID security - by hand and finally there is the client setup too.  I spent a long time with John Howard's blog which got me the following commands for the Hyper-V server:

netsh advfirewall set currentprofile settings remotemanagement enable

netsh advfirewall firewall set rule group="Windows Management Instrumentation (WMI)" new enable=yes

netsh advfirewall firewall set rule  name="Remote Administration (RPC-EPMAP)" new enable=yes profile=domain

netsh advfirewall firewall set rule name="Remote Administration (NP-In)" new enable=yes profile=domain

netsh advfirewall firewall set rule name="Remote Administration (RPC)" new enable=yes profile=domain

netsh advfirewall firewall set rule name="remote desktop (tcp-in)" new enable=Yes profile=domain

net localgroup “Distributed COM Users” /add David

There was then a few things to do on the client PC where it would not connect.  Again the postings at http://blogs.technet.com/jhoward/archive/2008/03/28/part-2-hyper-v-remote-management-you-do-not-have-the-requested-permission-to-complete-this-task-contact-the-administrator-of-the-authorization-policy-for-the-computer-computername.aspx helped me solve the problems.

I've put all this here as a reference really, because John has been a busy boy and now has a tool that does this for you called HVRemote.

So, learn from my pain and use John's tool.  You should be able to add a user and set the permissions very quickly.

 

One thing I will say is that I use OneCare on my OC client and I had to add some rules in the OneCare firewall:

  - Port 135 for RPC

image - \windows\System32\wbem\unsecapp.exe

image  - \program files\hyper-v\vmconnect.exe

image - Possibly (can't remember) - \windows\system32\WUDPhost.exe

 

I hope that helps.  You should see a screen like this once it is installed, with no error message where my VM's are showing:

image

 

thanks

David

 


Posted Wed, Dec 3 2008 1:04 AM by David Overton

Comments

David Overton's Blog wrote Hyper-V Management console stops working after a month or so with error “Cannot connect to the RPC service on Computer ‘xxx’. Make sure your RPC service is running.
on Sun, Dec 21 2008 9:49 PM

This can help diagnose and resolve the issue if like me, it was running fine and then it suddenly stops

Brett wrote re: How to resolve errors like "Cannot connect to the RPC service, make sure your RPC service is running" with Hyper-V Server and Hyper-V Manager
on Wed, Jan 14 2009 11:26 PM

You really gotta love HyperV.   The concept is great, but so far with my experience, the management is a nightmare--typical Microsoft 1.X product!

David Overton wrote re: How to resolve errors like "Cannot connect to the RPC service, make sure your RPC service is running" with Hyper-V Server and Hyper-V Manager
on Wed, Jan 14 2009 11:32 PM

Brett,

The Management is GREAT, it is installing the management that is a nightmare, however there is now the great HVREMOTE tool that is amazing - one command line does it all.  Not bad for a free product!

ttfn

David

David Overton's Blog wrote Getting up and running with Microsoft Hyper-V Server 2008, including getting my external SATA drives working, adding network drivers, enabling the remote management tools
on Mon, Jan 26 2009 3:30 PM

[updated 7th Dec 2008 with links to more answers] It has been a while since I posted on the blog - I've

David Overton's Blog wrote Hyper-V Management console stops working after a month or so with error “Cannot connect to the RPC service on Computer ‘xxx’. Make sure your RPC service is running.
on Fri, Feb 20 2009 1:28 AM

[updated with net accounts command 20/2/2009] This can help diagnose and resolve the issue if like me

Jose wrote re: How to resolve errors like "Cannot connect to the RPC service, make sure your RPC service is running" with Hyper-V Server and Hyper-V Manager
on Mon, Jul 27 2009 4:19 PM

I agree 100% with Brett "the management is a nightmare--typical Microsoft 1.X product!" I will migrate to Xen.

Jose wrote re: How to resolve errors like "Cannot connect to the RPC service, make sure your RPC service is running" with Hyper-V Server and Hyper-V Manager
on Mon, Jul 27 2009 5:33 PM

Be shure that the server name is the same that the dns name. Ping the Netbios name and check that is the IP of the server.  I have the same problem and I solved adding an entry in the host file in the remote PC.

David Overton wrote re: How to resolve errors like "Cannot connect to the RPC service, make sure your RPC service is running" with Hyper-V Server and Hyper-V Manager
on Tue, Jul 28 2009 12:13 AM

Obviously, with Hyper-V R2 a few days away I would recommend you try that before migrating to Xen.  These errors are caused because the Hyper-V system is not part of a domain and implementing a stardart password renewal policy is good practise IMHO.  If you don't have this, then this is the result.

David

Brett wrote re: How to resolve errors like "Cannot connect to the RPC service, make sure your RPC service is running" with Hyper-V Server and Hyper-V Manager
on Wed, Aug 5 2009 5:17 AM

"with Hyper-V R2 a few days away I would recommend you try that before migrating to Xen.  These errors are caused because the Hyper-V system is not part of a domain "

You have to admit, this was pretty poor planning on MS' part.  Did you really not think people would be running Core in non-domain settings?!?!?!?!?!

Jose wrote re: How to resolve errors like "Cannot connect to the RPC service, make sure your RPC service is running" with Hyper-V Server and Hyper-V Manager
on Tue, Sep 1 2009 5:31 PM

Check first if the password of the managing account has expired!!!

OlympicBill wrote re: How to resolve errors like "Cannot connect to the RPC service, make sure your RPC service is running" with Hyper-V Server and Hyper-V Manager
on Fri, Oct 23 2009 8:23 PM

David, I came across your site as I too have been having trouble getting a Hyper-V Core server managed by my Vista PC.  Your post does help but I believe you meant WUDFhost.exe rather than WUDPhost.exe.  Probably just a fat finger.

Anyway, your info helped (John Howards too) and I have a fully functional Hyper-V Core server and am Managing it with Hyper-V Manager from a Vista PC.

Everything works but I do understand how some of the others attempting it have been frustrated.  It did take a lot of time, work and persistance to get where I am now and it should not be made this difficult my Microsoft. OK, Core is limited by having few GUI tools that work on it.  But why can't Microsoft produce a remote GUI tool (similar to Hyper-V Manager) that does all the needed prep stuff: set up roles, open ports, make necessary NIC configurations, etc.)?  Not all network engineers are great programmers.  Granted, John Howard and others such as yourself made a lot of the tougher stuff palletable but darn it, lets do this thing right!

David Overton wrote re: How to resolve errors like "Cannot connect to the RPC service, make sure your RPC service is running" with Hyper-V Server and Hyper-V Manager
on Sun, Nov 1 2009 6:24 PM

OlympicBill,

Hyper-V R2 does most of this for you.

Thanks

David

Jeff Mitchell wrote re: How to resolve errors like "Cannot connect to the RPC service, make sure your RPC service is running" with Hyper-V Server and Hyper-V Manager
on Mon, Jun 21 2010 7:40 PM

This helps if it is a local (own Network) machine...but what if we are outsourced IT guys and have a plethora of Hyper-V hosts and there are no other 2008 machines or Windows 7 machines other than my laptop?

Alex wrote re: How to resolve errors like "Cannot connect to the RPC service, make sure your RPC service is running" with Hyper-V Server and Hyper-V Manager
on Sun, Jul 4 2010 5:10 AM

Hey David,

What is "domain" in  profile=domain ?? Do we copy and paste the commands as they are?  or needs any changes ?

ex:

netsh advfirewall firewall set rule  name="Remote Administration (RPC-EPMAP)" new enable=yes profile=domain

Thanks

David Overton wrote re: How to resolve errors like "Cannot connect to the RPC service, make sure your RPC service is running" with Hyper-V Server and Hyper-V Manager
on Mon, Jul 26 2010 12:09 AM

Alex,

you don't need to change the commands at all.  Profile=domain is putting the setting in the "when connected to the domain" list.  You should be able to copy and paste the commands.

I hope that helps

David

Add a Comment

(optional)  
(optional)
(required)  
Remember Me?

(c)David Overton 2006-13