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.
10-second guide
Configuration | Where | Purpose | Commands |
---|---|---|---|
Client and Server both workgroup | Server | Create a local account (eg "john") | Use net user /? or Computer Management |
Server | Grant the user access | cscript hvremote.wsf /add:accountname *** | |
Client | Allow Anonymous Logon remote DCOM access | cscript hvremote.wsf /anondcom:grant | |
Client | Logon with matching local account. | Ctrl+Alt+Del :) | |
Client | If passwords do not match | cmdkey /add:servername /user:servername\account /pass | |
Client | Set firewall exception | cscript hvremote.wsf /mmc:enable | |
Both | Verify configuration for errors | cscript hvremote.wsf /show /target:othercomputername | |
------------------------- | |||
Client workgroup, Server domain | Server | Grant domain account access | cscript hvremote.wsf /add:domain\account *** |
Client | Allow Anonymous Logon remote DCOM access | cscript hvremote.wsf /anondcom:grant | |
Client | Set credentials for domain account | cmdkey /add:servername /user:domain\account /pass | |
Client | Set firewall exception | cscript hvremote.wsf /mmc:enable | |
Both | Verify configuration for errors | cscript hvremote.wsf /show /target:othercomputername | |
------------------------- | |||
Client domain, Server workgroup | Server | Create a local account (eg "john") | Use net user /? or Computer Management |
Server | Grant the user access | cscript hvremote.wsf /add:accountname *** | |
Client | Set credentials for local account | Use cmdkey /add:servername /user:servername\accountname /pass | |
Client | Set firewall exception | cscript hvremote.wsf /mmc:enable | |
Both | Verify configuration for errors | cscript hvremote.wsf /show /target:othercomputername | |
------------------------- | |||
Client and Server both domain | Server | Grant the non-admin user access | cscript hvremote.wsf /add:domain\account *** |
Client | Set firewall exception | cscript hvremote.wsf /mmc:enable | |
Both | Verify configuration for errors | cscript 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
Applicability | Operation | Command |
---|---|---|
Server | Grant account access | hvremote /add:domain\account (Domain) or hvremote /add:account(Workgroup) |
Server | Revoke account access | hvremote /add:domain\account (Domain) or hvremote /add:account(Workgroup) |
Both | Display settings | hvremote /show |
Client | Display settings and test server connectivity | hvremote /show /target:servercomputername |
Server | Display settings and test client connectivity | hvremote /show /target:clientcomputername |
Both | Display help | hvremote /? |
Client | Add firewall exception for MMC | hvremote /mmc:enable |
Client | Permit ANONYMOUS LOGON remote DCOM access | hvremote /AnonDCOM:grant |
Client | Deny ANONYMOUS LOGON remote DCOM access | hvremote /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