- The Hyper-V Manager snap-in and the Virtual Machine Connection access tool, which are available with Remote Server Administration Tools for Windows 7 (http://go.microsoft.com/fwlink/?LinkId=131280)
- The
HVRemote.wsf
Windows script file, which is available in the Hyper-V Remote Management Configuration Utility Downloads (http://go.microsoft.com/fwlink/?LinkId=163299)
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