Friday, November 20, 2009

Hyper-V Remote Management Configuration Utility

Just browsing I've found this amazing tool to simplifly Hyper-V configuration, enjoy it !

What is it !???

    • HVRemote reduces the manual configuration steps needed for Hyper-V Remote Management down to a few simple commands.
    • HVRemote can diagnose common configuration errors.
    • HVRemote is locale neutral, although output is in English only.
    • HVRemote can configure all combinations of workgroup and domain joined clients and servers.
If you find HVRemote useful, please drop me an email through my blog, or add a comment to this post :)

10-second guide


ConfigurationWherePurposeCommands
Client and Server both workgroupServerCreate a local account (eg "john")Use net user /? or Computer Management
ServerGrant the user accesscscript hvremote.wsf /add:accountname ***
ClientAllow Anonymous Logon remote DCOM accesscscript hvremote.wsf /anondcom:grant
ClientLogon with matching local account.Ctrl+Alt+Del :)
ClientIf passwords do not matchcmdkey /add:servername /user:servername\account /pass
ClientSet firewall exceptioncscript hvremote.wsf /mmc:enable
BothVerify configuration for errorscscript hvremote.wsf /show /target:othercomputername
-------------------------
Client workgroup, Server domainServerGrant domain account accesscscript hvremote.wsf /add:domain\account ***
ClientAllow Anonymous Logon remote DCOM accesscscript hvremote.wsf /anondcom:grant
ClientSet credentials for domain accountcmdkey /add:servername /user:domain\account /pass
ClientSet firewall exceptioncscript hvremote.wsf /mmc:enable
BothVerify configuration for errorscscript hvremote.wsf /show /target:othercomputername
-------------------------
Client domain, Server workgroupServerCreate a local account (eg "john")Use net user /? or Computer Management
ServerGrant the user accesscscript hvremote.wsf /add:accountname ***
ClientSet credentials for local accountUse cmdkey /add:servername /user:servername\accountname /pass
ClientSet firewall exceptioncscript hvremote.wsf /mmc:enable
BothVerify configuration for errorscscript hvremote.wsf /show /target:othercomputername
-------------------------
Client and Server both domainServerGrant the non-admin user accesscscript hvremote.wsf /add:domain\account ***
ClientSet firewall exceptioncscript hvremote.wsf /mmc:enable
BothVerify configuration for errorscscript hvremote.wsf /show /target:othercomputername


*** Restart server if this is the first time an account has been added.

Supported Servers:

    • Windows Server 2008 SP1 with Hyper-V RTM update applied (KB950050), Core & Full installations
    • Windows Server 2008 SP2, Core & Full installations
    • Microsoft Hyper-V Server 2008 SP1 (already contains Hyper-V RTM update)
    • Microsoft Hyper-V Server 2008 SP2
    • Windows Server 2008 R2, Core & Full installations
    • Microsoft Hyper-V Server 2008 R2

Supported Clients:

    • Windows Vista Business, Enterprise and Ultimate x86 & x64, SP1 and SP2, with KB952627 applied
    • Windows 7 Professional, Enterprise and Ultimate x86 & x64 with RSAT installed and Hyper-V tools feature enabled
    • Windows Server 2008 SP1 with Hyper-V RTM update applied (KB950050), x86 and x64
    • Windows Server 2008 SP2 x86 and x64
    • Windows Server 2008 R2

Command summary


Please see the documentation for more information - below is not a complete list of all command line options, just the most commonly needed commands. Commands should be run from an elevated command prompt.

If the default scripting engine is already CScript, you can run each command exactly as shown in the table. To change the default scripting engine to cscript, run cscript //h:cscript. Alternately, launch each command using the longer format: cscript hvremote.wsfcommand

ApplicabilityOperationCommand
ServerGrant account accesshvremote /add:domain\account (Domain) or hvremote /add:account(Workgroup)
ServerRevoke account accesshvremote /add:domain\account (Domain) or hvremote /add:account(Workgroup)
BothDisplay settingshvremote /show
ClientDisplay settings and test server connectivityhvremote /show /target:servercomputername
ServerDisplay settings and test client connectivityhvremote /show /target:clientcomputername
BothDisplay helphvremote /?
ClientAdd firewall exception for MMChvremote /mmc:enable
ClientPermit ANONYMOUS LOGON remote DCOM accesshvremote /AnonDCOM:grant
ClientDeny ANONYMOUS LOGON remote DCOM accesshvremote /AnonDCOM:revoke

Installation


Save HVRemote.wsf from the Downloads tab to a directory on the local disk (eg c:\HVRemote)

No comments:

Post a Comment