/build/static/layout/Breadcrumb_cap_w.png

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.

0 Comments   [ + ] Show comments

Answers (8)

Posted by: jkatkace 13 years ago
Purple Belt
0
Why wouldn't you use K1000 Patching for this?
Posted by: KevinG 13 years ago
Red Belt
0
What is the exact name of the update file?
Posted by: cblake 13 years ago
Red Belt
0
Without knowing which service pack I can offer the following general command line paramaters from microsoft regarding their general server service packs:






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 13 years ago
Orange Senior Belt
0
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:\
Posted by: anthonyw 13 years ago
Orange Senior Belt
0
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 13 years ago
Orange Senior Belt
0
If I look on my Replicate under "D:\SMSPKGD$\repl2\patches\windows\x86\en" the file name is 6479EBC0-0B1D-4D0E-9C1A-4429DC8D8285.plp.90e46f942ff9ebb4729212f685d95a10
Posted by: cblake 13 years ago
Red Belt
0
Sorry, the scenario I gave was assuming you were going to download the SP from Microsoft, not from the KBOX.
Posted by: KevinG 13 years ago
Red Belt
0
6479EBC0-0B1D-4D0E-9C1A-4429DC8D8285.plp.90e46f942ff9ebb4729212f685d95a10

This patch requires the Lumension API to install, so you will not be able to use a script.

If you get the actual .exe from MS, you may be able to install using a script.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ