Some time ago there was someone looking at getting their autopatcher to run multiple times on startup so that all the windows updates would be completed. I'm curious is to if that person succeeded and how they went about it.
I have some theory about using some batch files but my only concern is either having batch files that dont get deleted and causing conflicts or the ability to have a batch file delete itself...which really isnt possible. But i do also want the entire thing automated aswell.soo...
has anyone achieved this?
i'm going to try it anyway but it'd be nice if somoene already has a tested method that works.
auto-starting AP multiple times to get all updates
Started by Phariset, Feb 10 2010 04:26 PM
2 replies to this topic
#1
Posted 10 February 2010 - 04:26 PM
#2
Posted 10 February 2010 - 11:17 PM
it's possible automate that task, yes. you will require the usage of the runonce. this is an sample of an .reg file that will add an option to run something at runonce:
once added into registry, when the machine reboots it will be done. to reboot automatically, you can choose an tool to that, like autoshutdown or something. some of those tools have an option to reboot
> delete itself...which really isnt possible
that is possible. i've just did it right now, just to test. i've just did an simple .bat file, with the name 1.bat. this was the content of that file:
del 1.bat
then, double-click that file. and 1.bat it's gone
[]s
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce] "sp2"="C:\\temp\\i386\\update\\update.exe /passive /forcerestart /o /f"
once added into registry, when the machine reboots it will be done. to reboot automatically, you can choose an tool to that, like autoshutdown or something. some of those tools have an option to reboot
> delete itself...which really isnt possible
that is possible. i've just did it right now, just to test. i've just did an simple .bat file, with the name 1.bat. this was the content of that file:
del 1.bat
then, double-click that file. and 1.bat it's gone
[]s
Edited by Cristiano, 10 February 2010 - 11:20 PM.
#3
Posted 11 February 2010 - 05:28 PM
That will work quite nicely. Thankyou.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users












