Deploy Group Policy Preference Client Side Extensions for Windows XP (KB943729) via logon script

Multiple Group Policy Preferences have been added to the Windows Server 2008 Group Policy Management Console (which are also available through the Remote Server Administration Toolset (RSAT) for Windows Vista SP1). Group Policy Preferences enable information technology professionals to configure, deploy, and manage operating system and application settings they previously were not able to manage using Group Policy. After you install this update, your computer will be able to process the new Group Policy Preference extensions.

Call this script from you server logon_script

deploy_kb943729.bat

rem **** Test workstation and deploy KB943729 ****
rem check for Windows XP
ver | find "Windows XP" >NUL
if errorlevel 1 goto notapplied

rem check for update already installed
reg QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows XP\SP20\KB943729" >NUL 2>NUL
if errorlevel 1 goto install_update
goto notapplied

:install_update
\\%logonserver%\netlogon\Windows-KB943729-x86-ENU.exe /passive /norestart
Echo %Date% %Time% %computername% – Patch installed>>\\%logonserver%\folder_to_store_logfiles\KB943279.txt
goto end

:notapplied
Echo %Date% %Time% %computername% – *not installed* >>\\%logonserver%\folder_to_store_logfiles\KB943279.txt

:end

Leave a Reply