Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

automate installing kb files 1

Status
Not open for further replies.

harmmeijer

Programmer
Mar 1, 2001
869
CN
I have written something that takes all the exe files from a
cetain directory and installs them.

These exe files are kb articles (critical updates) to be installed before connecting to any network.

I create a task (c:\winnt\tasks) that executes under local admin when the computer starts (that is before anybody logs in). This starts my program, my program copies the first kb file to a done directory and executes it with the following options:
/quiet /forcerestart.

For most kb's this works but some have other commandline options (the person who made this inconsistent should be shot). Because nobody is loged on the kb shows a dialog with the valid options, I never see that dialog because the kb has been started before anyone logs in (like a service).

Does anybody know a good way to automate installing all the (about 18) packages after sp4 without having to click anyting?





Greetings, Harm Meijer
 
Thanks for your reply.

I think we use someting like that at work.
I ran into this problem when I needed to reinstall my fathers pc, could not go to windowsupdate because within 5 minutes after connecting to the internet the PC was allready infected and started spontanious reboot after 8 to 10 minutes.

Found this site:
and downloaded all the files I could find (w2k pro sp4).
Since I know my father has trouble clicking the no button (active x) I switched it off but stiil know that I need to re install the lot sooner or later. So tried to make a simple programm that installs these patches without anybody needing to reboot the pc.

Solved the problem with a lot of if statements (if file is ... give ... option)
Allso noticed some patches won't reboot and have no forcerboot option so I changed the prog to force no reboot and start the psshutdown.exe (-r) when a kb is installed.



Greetings, Harm Meijer
 

tells me that commandline option
/u /q /z

will do an unattendid quit mode without restarting when the hotfix is finished

the following batch will install multiple kb's

Windows2000-KB######-x86-LLL.exe /Z /U
Windows2000-KB######-x86-LLL.exe /Z /U
Windows2000-KB######-x86-LLL.exe /Z /U
Windows2000-KB######-x86-LLL.exe /Z /U
...

Afer reading this thread I don't have the guts to try it out though

My program will work with the /u /q /z option for all kb's allso for the ones that need a -u option



Greetings, Harm Meijer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top