Jump to content

Recommended Posts

Posted

I used jdeboeck's REMOVE! script to remove automatic updates (as well as other things) and now I need to see if its possible to get them back via a script or anything at all onto the machines (about 120 of them!) without manually reinstalling all of them.

the code used is below

@echo off

if not exist optional mkdir optional
if not exist optional\au mkdir optional\au

rem Moving files
move i386\au.in_ optional\au
move i386\rootau.in_ optional\au
move i386\wuauserv.dl_ optional\au
move i386\wuaueng.dl_ optional\au
move i386\wuauclt.ex_ optional\au
move i386\wuauhelp.ch_ optional\au

rem Updating txtsetup.sif
echo au.inf>> txtsetup.log
echo rootau.inf>> txtsetup.log
echo wuauserv.dll>> txtsetup.log
echo wuaueng.dll>> txtsetup.log
echo wuauclt.exe>> txtsetup.log
echo wuauhelp.chm>> txtsetup.log
findstr /v /b /i /g:txtsetup.log i386\txtsetup.sif > txtsetup.sif
move txtsetup.sif i386\txtsetup.sif
del txtsetup.log

rem Updating dosnet.inf
echo d1,au.inf>> dosnet.log
echo d1,rootau.inf>> dosnet.log
echo d1,wuauserv.dll>> dosnet.log
echo d1,wuaueng.dll>> dosnet.log
echo d1,wuauclt.exe>> dosnet.log
echo d1,wuauhelp.chm>> dosnet.log
findstr /v /b /i /g:dosnet.log i386\dosnet.inf > dosnet.inf
move dosnet.inf i386\dosnet.inf
del dosnet.log

rem Updating sysoc.inf
expand -r i386\sysoc.in_
findstr /v /i /c:au.inf /c:rootau.inf i386\sysoc.inf > sysoc.inf
move sysoc.inf i386\sysoc.inf
makecab i386\sysoc.inf i386\sysoc.in_
del i386\sysoc.inf

if I can't get them back i'm most likely going to try and setup a GPO to push out a windows xp update install. I've found plenty of answer files for unattended installs but I can't find anything for unattended updates. all I need to to change other then automatic updates is the CD key.

thank you for any info on either of these!


Posted

well after putting those files

u need to execute the inf files

c:
cd\
md install

echo change d:\ to your cd rom drive (there is a very easy auto cdrom drive finder in the forums)

copy d:\i386\au.in_ c:\install
copy d:\i386\rootau.in_ c:\install
copy d:\i386\wuauserv.dl_ c:\install
copy d:\i386\wuaueng.dl_ c:\install
copy d:\i386\wuauclt.ex_ c:\install
copy d:\i386\wuauhelp.ch_ c:\install


cd install
expand -r *.*
C:\WINDOWS\System32\rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 au.inf


u don't need the rest..
ow and I'm not sure but the auto update service might be disabled, u'd have to enable it


also the au.inf contains more files than jdeboeck removed
wuauclt1.exe
wuaucpl.cpl
wups.dll
wuaueng1.dll
wucltui.dll
wuweb.dll
etc...

u might need to do a similar thing for the other files


--------below not neccessary----------------
rem Updating txtsetup.sif
echo au.inf>> txtsetup.log
echo rootau.inf>> txtsetup.log
echo wuauserv.dll>> txtsetup.log
echo wuaueng.dll>> txtsetup.log
echo wuauclt.exe>> txtsetup.log
echo wuauhelp.chm>> txtsetup.log
findstr /v /b /i /g:txtsetup.log i386\txtsetup.sif > txtsetup.sif
copy txtsetup.sif i386\txtsetup.sif
del txtsetup.log

rem Updating dosnet.inf
echo d1,au.inf>> dosnet.log
echo d1,rootau.inf>> dosnet.log
echo d1,wuauserv.dll>> dosnet.log
echo d1,wuaueng.dll>> dosnet.log
echo d1,wuauclt.exe>> dosnet.log
echo d1,wuauhelp.chm>> dosnet.log
findstr /v /b /i /g:dosnet.log i386\dosnet.inf > dosnet.inf
copy dosnet.inf i386\dosnet.inf
del dosnet.log

rem Updating sysoc.inf
expand -r i386\sysoc.in_
findstr /v /i /c:au.inf /c:rootau.inf i386\sysoc.inf > sysoc.inf
copy sysoc.inf i386\sysoc.inf
makecab i386\sysoc.inf i386\sysoc.in_
del i386\sysoc.inf

Posted

you sir absolutly saved my bacon :)

edit

gah, it made it all the way through the expansion process without a problem when it goes to execute the final install statement a small alert box pops up saying "installation failed"

I tried manually going to the au.inf file and installing but it just hourglassed the mouse for a second and didn't do anything even after a reboot. I check both the system properties screen and the services window and neither show automatic updates yet. :D

I'm guessing there might be a mistype or something in the install statement so i'll look for a solution

still very much thank you :rolleyes:

edit again!

changing C:\WINDOWS\System32\rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 au.inf

to

C:\WINDOWS\System32\rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 c:\install\au.inf

let it run without a problem. restarted and still nothing so i'm going to go back and try doing the same for all the other files

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...