Script to install a patch
Good day,
I've already made service pack for Server 2003 active and it is on all my replicates. I now want to use a script to install the service pack not patching.
I can find the command line to silently install the service pack but don't know what directory to point the script to.
Please assist.
I've already made service pack for Server 2003 active and it is on all my replicates. I now want to use a script to install the service pack not patching.
I can find the command line to silently install the service pack but don't know what directory to point the script to.
Please assist.
0 Comments
[ + ] Show comments
Answers (8)
Please log in to answer
Posted by:
cblake
14 years ago
Without knowing which service pack I can offer the following general command line paramaters from microsoft regarding their general server service packs:
So for SP2 your command might look like:
"WindowsServer2003-KB914961-SP2-XXX-LLL.exe" /ER /PASSIVE /NORESTART
Command-line option
Description
/D:Path
Backs up the files that are required to remove the service pack to Path. Any location that you specify must be on the local drive. If you back up files but do not specify a folder, the default location is:
$ntservicepackuninstall$
/ER
Enables extended codes that return a detailed error message if the update installation fails. For more information, see "The Package Installer (Formerly Called Update.exe) for Microsoft Windows Operating Systems and Windows Components" (http://go.microsoft.com/fwlink/?LinkId=42759 ).
/F
or
/Forceappsclose
Forces other applications to close after you install the update package and before the computer is restarted. You cannot use this option with /integrate, /L, and /Z.
/Forcerestart
Restarts the computer after the installation is complete, even if a restart is not required to complete the installation. This option does not force applications to close.
/Integrate:Path
Integrates the SP2 source files into the path you specify. Be sure to provide the absolute path to your operating system source files. This option is the same as the /S option that was used by previous installers.
/L
Lists installed updates.
/N
or
/Nobackup
Does not create backup files during setup. We do not recommend this option because backup files allow you to remove SP2 in the future. An entry for SP2 does not appear in Add or Remove Programs if you use this option.
/O
or
/Overwriteoem
Overwrites OEM files without prompting.
/Promptrestart
If a restart is required, a dialog box notifies the user that a restart is required to complete setup. Intended for use with /Quiet.
/Q
or
/Quiet
Uses quiet mode. This mode shows no user interface during the installation of the updates. This is the same as unattended mode, except that the user interface is hidden. No prompts will appear during the installation process.
/U
or
/Passive
Installs the service pack in unattended mode. Only critical error prompts and a progress bar will appear during the installation. By default, the program invokes the /Warnrestart option.
/Warnrestart:[Seconds]
If a restart is required, a dialog box notifies the user that the computer will restart in the specified seconds. The user can click Cancel or Restart Now. The default is 60 seconds.
/X
or
/Extract
Extracts service pack files without starting Update.exe. You are prompted to provide the path for the folder in which you want the extracted service pack installation files to be placed. For more information, see "The Package Installer (Formerly Called Update.exe) for Microsoft Windows Operating Systems and Windows Components" (http://go.microsoft.com/fwlink/?LinkId=42759 ).
/Z
or
/Norestart
Does not restart the computer after the installation is complete, even if a restart is required to complete the installation.
/?
or
/Help
Displays Help
So for SP2 your command might look like:
"WindowsServer2003-KB914961-SP2-XXX-LLL.exe" /ER /PASSIVE /NORESTART
Posted by:
anthonyw
14 years ago
I have a VM that runs a Unix OS. If I install the Service Pack and the server reboots and the Unix server is busy with the dayent, it will cause alot of problems.
The idea is that the Unix server will drop a file on the c:\ when the Dayend is complete, we will then use scripting to look for the file, then run the service pack only if the file is on c:\, when the start of day is done on the Unix server it will remove the file from c:\
The idea is that the Unix server will drop a file on the c:\ when the Dayend is complete, we will then use scripting to look for the file, then run the service pack only if the file is on c:\, when the start of day is done on the Unix server it will remove the file from c:\
Posted by:
anthonyw
14 years ago
The problem is that I don't see "WindowsServer2003-KB914961-SP2-XXX-LLL.exe" on my Replicate. If I look in D:\SMSPKGD$\repl2\patches\windows\x86\en on my Replicate I only see "6479EBC0-0B1D-4D0E-9C1A-4429DC8D8285.plp.90e46f942ff9ebb4729212f685d95a10". I think this is the patch but don't know how to run it with a script.
Posted by:
anthonyw
14 years ago
Posted by:
cblake
14 years ago
Posted by:
KevinG
14 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.