Wednesday, July 7, 2010

Patching a new system

Microsoft releases many patches.  We use System Center Configuration Manager 2007 as our patching system, but sometimes, when we need to get something patched immediately prior to joining a system to the domain or adding it to the network, we need to patch immediately without network access. In order to do so, we usually copy the necessary patches to a folder on the system or onto a CD and place a batch file containing the following code into the same folder.

FOR %%A IN (*.exe) DO %%A /passive /norestart

Copy the code into notepad and save the file with a .bat extension.

This code will run each patch, one-by-one, with the /passive and /norestart command-line switches. You can add a /quiet switch to hide the patches that are installing, but we like to make sure things are running.

 Once all of the required patches are installed, we can breath a sigh of relief and add that system to the domain or configure it with the proper network settings.

No comments:

Post a Comment