关于
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分钟手册
Configuration | Where | Purpose | Commands |
Client and Server both workgroup | Server | Create a local account (eg "john") 创建一个本地帐号(如 john) | Use net user /? or Computer Management 使用net user命令或计算机管理器,如net user john pass /add 删除账号:net user 用户名 /delete 把用户加入管理组:net localgroup administrators 用户名 /add |
Server | Grant the user access 给账号授权 | cscript hvremote.wsf /add:accountname 如 cscript hvremote.wsf /add:ohn (完成后需重启) | |
Client | Allow Anonymous Logon remote DCOM access 允许匿名远程DCOM访问 | 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 使用命令net user 用户名 新密码 | |
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 | Allow Anonymous Logon remote DCOM access | cscript hvremote.wsf /anondcom:grant | |
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 |
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
Windows Server 2008 R2 SP1, Core & Full installations
Microsoft Hyper-V Server 2008 R2
Microsoft Hyper-V Server 2008 R2 SP1
Supported Clients:
Windows Vista Business, Enterprise and Ultimate x86 & x, SP1 and SP2, with KB952627 applied
Windows 7 Professional, Enterprise and Ultimate x86 & x with RSAT installed and Hyper-V tools feature enabled
Windows Server 2008 SP1 with Hyper-V RTM update applied (KB950050), x86 and x
Windows Server 2008 SP2 x86 and x
Windows Server 2008 R2
Windows Server 2008 R2 SP1
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.wsf command
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 |
Save HVRemote.wsf from the Downloads tab to a directory on the local disk (eg c:\\HVRemote)
Cannot connect to root\\cimv2