Thursday, February 03, 2005

MSWINXP - KB887797 Unattended setup

Download KB887797 from Microsoft.
Create batch file(KB887797.bat) to install KB887797 with command line:
C:\temp\WindowsXP-KB887797-x86-enu.exe /quiet /norestart

Copy files(kb887797.bat and WindowsXP-KB887797-x86-enu.exe) to machines.
Use psexec from Sysinternals to remotely run bach file.
psexec \\ -d -s "c:\temp\kb887797.bat"

Use shutdown.exe from the XP Resource Kit to reboot machines.
shutdown \\ /R /C /T:10

Notes:
An Administrator account must be used to perform all actions without putting credentials within the batch files.

Batch files used:
copyfiles.bat - Used to copy files to remote stations with FOR loop and list of computers.
kb887797.bat - Used to call WindowsXP-KB887797-x86-enu.exe with command line options
runinstall.bat - Used to run kb887797 remotely with psexec.exe
reboot.bat - Used to shutdown.exe to restart remote computers.

0 Comments:

Post a Comment

<< Home