how to prevent windows 2000 to auto-reboot?

W

walala

Dear all,

I am in need of the following utility:

My computer was configured by administrator to auto update Windows
patches and then auto reboot. This is good. But sometimes I am running
long overnight jobs. Many times I come to find my computer was
rebooted.

Today I did see one reboot: it says "your update is completed and your
computer will be rebooted in 4 minutes..." then I manually killed some
process(very chaotic, I did not even remember the process names..but
it did work amazingly... the reboot was prevented...)

So I now got an idea:

1) If I can know the "auto-reboot" process name, I can precisely kill
it before it reboots;

2) If I program a resident program and try to capture such process, I
may be able to prevent it automatically...

Can anybody tell me what is the "auto-reboot" process name in Windows
2000? And how to do that programming? I know something about Visual
C... and hope it is easy to do... Or is there any existing utilities
can do that?

Thanks a lot,

-Walala

ps. I don't have admin previledge so I canoot change the mothod of the
auto-update...
 
L

LiquidJ

1. Check out the Process32First()/Process32Next() functions to enumerate
processes on your system, and look for the name of the "auto-reboot process
name".
2. Use OpenProcess() to retrieve a handle to the process, given it's process
ID.
3. Use the TerminateProcess() function.


{L}
 
W

walala

LiquidJ said:
1. Check out the Process32First()/Process32Next() functions to enumerate
processes on your system, and look for the name of the "auto-reboot process
name".
2. Use OpenProcess() to retrieve a handle to the process, given it's process
ID.
3. Use the TerminateProcess() function.


{L}

Hi,

Thanks a lot for your help...

I just have one more headaching question: the auto-reboot command
issued from the server does not come regularly... Sometimes when I was
sleeping, or when I was dinning, it came and rebooted my computer. I
want to catch it and see the process name, but always fail to catch
its name. So I guess it is rather difficult to use the
"TerminateProcess" method;

Can I capture the "ExitWindow" process(I don't have administrative
previlidge)... and kill the "ExitWindow/ExitWindowEx" process? by
Hooking?

I am not very sure how to do that... can anybody give me an example
code in VC++ or point me to other resources? I think many programmers
may previously worked on this problem...

Thanks a lot,

-Walala
 
L

LiquidJ

The best advice I can give is to get your IT department to change the
behaviour of the automatic updates. The updates area probably automatic for
a good reason - they keep your network and PC safe(r) from
hackers/virii/etc. And often times it takes a reboot to properly install
the patch, especially when a system file is being updated.

I'm sure that if you have a valid reason for limiting your reboots to
specific times, your IT department will be able to help.


{L}
 

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