Discussions

XP Service Pack 3 (XP SP3) command line switches

+
0 Votes
Locked

XP Service Pack 3 (XP SP3) command line switches

Zpunky
For anyone who wants to deploy XP Service Pack 3 (XP SP3) through a batch script at logon and doesn?t know or like me, can?t find the switches, here they are.

I googled numerous phrases trying to find this info anywhere but couldn?t. So, I just started executing the file, in a command line, guessing at switches. ?/help?, after extracting the contents, gave me a window with the switch information. I?ve copied and pasted that here so others can save the time and just get their work done. Since this is a copy and paste, the layout is a little malformed. I'd suggest copying and pasting the switch info into a Word or text document to read it as it appears. After the switch info, I'm posting the command line I used to install it through out my network.

---------------------------
Service Pack 3 Setup
---------------------------
AVAILABLE SWITCHES:
[/help] [/quiet] [/passive] [/norestart] [/forcerestart] [/warnrestart] [/promptrestart] [/overwriteoem] [/nobackup] [/forceappsclose] [/integrate:<fullpath>] [/d:<path>] [/log:<fullpath>]

/help Displays this message

SETUP MODES

/quiet Quiet mode (no user interaction or display)
/passive Unattended mode (progress bar only)

RESTART OPTIONS

/norestart Do not restart when installation is complete
/forcerestart Restart after installation
/warnrestart[:<seconds>] Warn and restart automatically if required (default timeout 30 seconds)
/promptrestart Prompt if restart is required

SPECIAL OPTIONS

/overwriteoem Overwrite OEM files without prompting
/nobackup Do not backup files needed for uninstall
/forceappsclose Force other programs to close when the computer shuts down
/integrate:<fullpath> Integrate this software update into <fullpath>
/d:<path> Back up files into <path>
/log:<fullpath> Create log file at <fullpath>

****
My Install
Command line:
O:\xpsp3\WindowsXP-KB936929-SP3-x86-ENU /quiet /forcerestart /forceappsclose /d:d:\temp\bu /log:d:\temp\bu\xpsp3.log

What is does:
From a mapped drive "O:" and a directory named XPSP3, the service pack is executed to install without any user notification (you can detect it in Task Manager), forcing a restart, forcing any open apps to close for the restart, backing up the uninstall files to D:\Temp\bu. The last switch , "/log:..", was supposed to create a log file, but it didn't.

The 'log' switch instructs to provide <fullpath> which I took to mean everything including the file name because the backup switch indicates simply <path>. Since I tested the install before deploying it I don't really care, the log was more a curiosity than anything else.

Good luck.
+
0 Votes
piyushnasa

If Windows Update is turned off on a XP machine and then SP3 is installed
there is prompt during start-up before the log-on prompt for the user to turn
on or off Windows Updates.

Do you know of any switches during the installation that will remove this
prompt?

+
0 Votes
Zpunky

Hi,
So sorry I didn't see your request earlier. To my knowledge there is no switch. What I've found, empirically, is that certain updates, not just major service packs, reset certain preferences like Windows Update. It is truly maddening. I'm not an AD expert, but I believe there must be some policy you can effect that will continually enforce updates to remain off, even after service packs and the like.

+
0 Votes
cyric_74

I want to install SP3 without having to expand it every time, any ideas on how to do that?

+
0 Votes
Zpunky

Here is the script I used. I did not manually expand the file, but placed it in a directory with full access to everyone so that I knew the script could execute.

I have an 'O' drive mapped on all systems, zzIT is simply the IT directory on that drive and of course, the xpsp3 folder holds the service pack. You can read how the switches affect the install. The d:d:\temp\bu references a temp directory I have on all systems; I employ that for use by all apps and my batch files... just faster and easier to get to when i need to see what's up, a log, or to delete bloat files.

To execute, I simply modified my logon script, putting this near the end (before the line that updates anti-virus).

That's it. Hope this helps.

O:\zzIT\xpsp3\WindowsXP-KB936929-SP3-x86-ENU /quiet /forcerestart /forceappsclose /d:d:\temp\bu /log:d:\temp\bu\xpsp3.log