Many of the Best Practices modification are included in Provisioning Services Optimization Tool. One of these settings are disabling the Automatic Updates Service. To run Windows Update on your vDisk you will need to set the service startup to Automatically, start the service and run Windows Update. One of my recently added Must Have tools are WUinstall which automatically download and install Windows Updates from Microsoft or your internal Windows Updates Services with one command. I have added this to my build script, take a look at my previous blog post “Prepare a Provisioning Services Private vDisk for Shared vDisk“.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
@echo off cls echo ************************************************************ echo ***** This will prepare the machine for Standard Image ***** echo ************************************************************ echo. choice /c yn /m "Do you want to Download and Install Windows Updates" set DRIVENUM=%ERRORLEVEL% if %DRIVENUM% EQU 1 goto wsus if %DRIVENUM% EQU 2 goto cont :wsus echo. echo Enable and Start Windows Update Service sc config wuauserv start= auto net start wuauserv echo. echo Applying Windows Updates wuinstall /install goto cont :cont echo. ipconfig /flushdns echo. defrag C: echo. echo Running Provisioning Services Optimization Tool call "c:Program FilesCitrixProvisioning ServicesTargetOSOptimizer.exe" echo. echo Running XenApp Cloning Tool call "c:Program FilesCitrix ToolsXenApp Cloning ToolXenApp Cloning Tool.exe" shutdown /S |
Hi!
is it possible to enable wsus only in private vDisk mode, when we are modify “golden image” and disable if servers start in standart vDisk mode?
Yes. If you run the script it will enable the Service needed to download updates from MS Update or your internal WSUS. In the end of the script the PVS Target Optimizer starts and this disables the Windows Update Service.
I use this script at all my customers every time I switch from Private to Standard vDisk.
Eric