Citrix Provisioning Services for Citrix XenApp Best Practice

By Trond Eirik Haavarstein 21/09/2009 – 17:27

XenAppCloningTool 300x216 Citrix Provisioning Services for Citrix XenApp Best Practice

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
  1. 2 Responses to “Citrix Provisioning Services for Citrix XenApp Best Practice”

  2. 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?

    By Max Rodkin on May 25, 2010

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

    By admin on May 25, 2010

Post a Comment