Reboot on logout

G

Guest

Dear All,

I hope someone can offer some advice. I have about 4,000 PCs running XP SP1
and SP2 connected to a Windows 2003 domain. I would like to be able to make
them shutdown or reboot when people logout. I thought this would be easy -
just create a logout script and put the code to do a shutdown in it. If I
just run the code while I am logged in it works but if I run it while logging
out it doesn't. Somehow, it knows a logout is in progress and ignores the
shutdown command. I have tried all sorts of things but none of them work. I
tried scheduling a reboot by hand (shutdown.exe /r /t 30) before I logged
out and that worked but if I do that within the logout script it also doesn't
work. Does anyone know a way round this?

Best wishes....
Colin Bruce
 
G

Guest

An alternative might be to remove the logout options, there are registry
keys that do this. Then, the user has to select powerdown (or use your
bespoke command)
 
G

Guest

... after a spot of grepping-around in dusty programming archives:

HKEY_CURRENT_USER,Software\Microsoft\Windows\CurrentVersion\Policies\Explorer,StartMenuLogoff,1

HKEY_CURRENT_USER,Software\Microsoft\Windows\CurrentVersion\Policies\Explorer,NoLogoff,1

I think these should work as HKLM keys too, though not tested.
 
G

Guest

Dear Steven,

Thanks for the reply and suggestion - it worked perfectly. Not only did it
solve the problem I described but it solves anothed that I was about to start
wondering how to do and one that a colleague was wondering about as well
which I didn't even know about.

Best wishes and thanks again.....
Colin
 
G

Guest

Dear Ian,

Thanks for the reply and the information. Steven's suggestion of using
psshutdown worked perfectly but the registry keys you mentioned will be very
useful for something else I need to do.

Bets wishes and thanks again.....
Colin
 

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