April 12, 2009
2:14 am

Follow the below steps to run Hyper-V Management Tools with Alternate Credentials:

runas /user:Administrator mmc — This prompt for local administrator password and then started a blank MMC console.

Load Hyper-V .MSC file: runas /user:Administrator "mmc \"C:\Program Files\Hyper-V\virtmgmt.msc\""

Note that \” is an escaped quote (needed for quotes inside of quotes).  This prompted me for a password and ran the Hyper-V Manager.

Get rid of password prompt: runas /savecred /user:Administrator "mmc \"C:\Program Files\Hyper-V\virtmgmt.msc\""

Create a shortcut that passed this whole command to CMD.EXE – as follows: C:\Windows\System32\cmd.exe /s /c "runas /savecred /user:Administrator "mmc \"C:\Program Files\Hyper-V\virtmgmt.msc\"""

Final steps: Get shortcut a Hyper-V icon from “%ProgramFiles%\Hyper-V\SnapInAbout.dll” and to change the shortcut to run minimized by default.

Source:→ Virtual PC Guy

Loading

Contextual Related Posts:

1 Response | RSS comments on this post | Leave a comment»

  1. 1
    MDowling says#1 | August 20th, 2009 at 12:40 am

    Hi,

    I've tried your method. It starts the Hyper-V tools but when connecting to the hyperv machine I get an RPC error.
    Good to know is that I have to use netonly credentials to run because there is no trust between my production domain and test domain.

    Regards,
    Marcus

No Pingback yet

PingBack URI

Leave a Response

Comment Preview
« TechNet Case study: How Microsoft designs Virtualization Host and Network InfrastructureNew changes to Microsoft Software Assurance 2008/2009 »
Feed Icon

Subscribe via RSS or email: