Freigeben über


Automated Install of Hyper-V Windows Integration Services

Tony had a question about automating the installation of the Integration Services (aka Integration Components) for Hyper-V.

You can copy the contents of the Integration Services ISO onto a physical system before performing a manual P2V (say, into a new  C:\IS_install directory).

Running setup in the AMD64 setup directory (C:\IS_install\AMD64\support\setup.exe /quiet) will install the ISs and reboot the system.  Automating the install is something I used to do via RIS (for the Windows Server 2003 Compute Cluster Edition), as it used RIS for deployment.  Back then it was a bit of a complicated process, as I would stick the ISs into the D:\RemoteInstall\Setup\English\Images\WINDOWS\$OEM$\$1\IC_Install directory and then call a script to invoke the install that could also close the installer (back when Hyper-V was in beta).  The script I used “back in the day” is below, but you shouldn’t need it any more, as the installer for the ISs is much better.

dim delay
set WshShell = CreateObject("WScript.Shell")
delay = 800

'call setup
set objShell = WScript.CreateObject("WScript.Shell")
objShell.Run("c:\IC_install\x86\setup.exe /quiet"),1,False

'Wait for window - This was the special sauce
While WshShell.AppActivate("Installation Complete") = FALSE
wscript.sleep delay
Wend
WshShell.AppActivate("Installation Complete")
wscript.sleep delay
WshShell.SendKeys "{ENTER}"

All your have to figure out is how you want to invoke setup as part of your automated installation.

-John