Batch file won't finish

M

Mike O'Neill

When running the following batch file I've run into a very
strange problem.

@echo off
setlocal
set PATHTOFIXES=Path
%PATHTOFIXES%\Windows2000-KB826232-x86-ENU.exe /z /q
%PATHTOFIXES%\Windows2000-KB825119-x86-ENU.exe /z /q
%PATHTOFIXES%\Windows2000-KB828035-x86-ENU.exe /z /q
%PATHTOFIXES%\Windows2000-KB824141-x86-ENU.exe /z /q
%PATHTOFIXES%\Windows2000-KB823182-x86-ENU.exe /z /q
%PATHTOFIXES%\qchain.exe qchainlog.txt

On most of the machine in my office it works fine, but on
about 20 Gateway 9500's and another 25 Dell GX150's I have
the following problem.
After the first patch is run the batch file stalls. What
seems to be happening is that update.exe keeps running
using 100% of the processor and never quits which keeps
the next file from running. If you go into task manager
and kill update.exe the next file runs but then stalls
just like the first. On all the rest of my machines
update.exe terminates and the batch file runs and finishes
the install of all the patches. I've searched the web high
and low but can't find any reference to this happening.
Does anyone have any idea what's going on with update.exe
and why it won't stop running???

Mike
 
J

Jerold Schulman

When running the following batch file I've run into a very
strange problem.

@echo off
setlocal
set PATHTOFIXES=Path
%PATHTOFIXES%\Windows2000-KB826232-x86-ENU.exe /z /q
%PATHTOFIXES%\Windows2000-KB825119-x86-ENU.exe /z /q
%PATHTOFIXES%\Windows2000-KB828035-x86-ENU.exe /z /q
%PATHTOFIXES%\Windows2000-KB824141-x86-ENU.exe /z /q
%PATHTOFIXES%\Windows2000-KB823182-x86-ENU.exe /z /q
%PATHTOFIXES%\qchain.exe qchainlog.txt

On most of the machine in my office it works fine, but on
about 20 Gateway 9500's and another 25 Dell GX150's I have
the following problem.
After the first patch is run the batch file stalls. What
seems to be happening is that update.exe keeps running
using 100% of the processor and never quits which keeps
the next file from running. If you go into task manager
and kill update.exe the next file runs but then stalls
just like the first. On all the rest of my machines
update.exe terminates and the batch file runs and finishes
the install of all the patches. I've searched the web high
and low but can't find any reference to this happening.
Does anyone have any idea what's going on with update.exe
and why it won't stop running???

Mike

Try adding the -m switch.
See tip 1981 in the 'Tips & Tricks' at http://www.jsiinc.com


Jerold Schulman
Windows: General MVP
JSI, Inc.
http://www.jsiinc.com
 
G

Guest

Thanks to David Adner for the solution to this problem.
Heres what solves it.

When I looked at the following
Local security policy > User Rights Assignment > Debug
programs
on users machines that didn't work, sure enough the "Debug
programs" policy was blank. As soon as I gave the local
Admin rights, bounced the box, the batch file ran fine.
Nice job!!!
Thanks...

MikeO
 
M

Michael Bednarek

Thanks to David Adner for the solution to this problem.
Heres what solves it.

When I looked at the following
Local security policy > User Rights Assignment > Debug programs
on users machines that didn't work, sure enough the "Debug
programs" policy was blank. As soon as I gave the local
Admin rights, bounced the box, the batch file ran fine.
Nice job!!!
Thanks...
[snip]

You didn't say in your OP that this batch file would run in a user account;
shouldn't patches to the OS and IE be run during the machine startup script
and under the SYSTEM account?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top