Citrix Provisioning Services for Citrix XenApp Best Practice

21/09/2009 – 17:27

XenAppCloningTool

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“.

@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 Files\Citrix\Provisioning Services\TargetOSOptimizer.exe"

echo.
echo Running XenApp Cloning Tool
call "c:\Program Files\Citrix Tools\XenApp Cloning Tool\XenApp Cloning Tool.exe"
shutdown /S
  • Share/Bookmark

Post a Comment