Tuesday, August 16, 2011

Manage Virtual Machines Remotely With Hyper-V Manager and Windows 7


Download the above files and make a folder on Server with a Share (UNC Path i.e. \\pcname\share\) and add the required files hvremote.wsf and the Windows6.1-KB958830-x64-RefreshPkg.msu or Windows6.1-KB958830-x86-RefreshPkg.msu to the shared folder. Make two batch files :-
1-) HyperVbatchClient.bat

With following commands with-in :-
cscript "\\pcname\shared\hvremote.wsf" /mmc:enable

DISM.exe /Online /NoRestart /Enable-Feature /FeatureName:"RemoteServerAdministrationTools-Roles" /FeatureName:"RemoteServerAdministrationTools" /FeatureName:"RemoteServerAdministrationTools-Roles-HyperV" 

2-) HyperVbatchServer.batWith following commands with-in :-
@echo off
echo
\\\\\\\\\\\\\\\\---------->Enter Details<----------////////////////
echo Domain Name or PC Name:
set /p Domain=
echo Username:
set /p UserName=
cscript "\\pcname\shared\hvremote.wsf" /add:%Domain%\%UserName%


Now run HyperVbatchClient on client after installing the msu file.
And then on Server run

HyperVbatchServer.bat which will ask you for domain or pc name of the server hosting hyper-v and username of the user you want to give access to.

Hope this helps someone out there.


Source: http://technet.microsoft.com/fr-fr/library/ee256062(WS.10).aspx

No comments:

Post a Comment