Update Rebooting from Netlogon Script
Chris Tooley
ctooley at joslyn.org
Fri Jun 9 15:11:14 GMT 2000
I was just wanting to pass on the knowledge I gained from this
experience.
1) Rebooting Windows 9x is a terrible pain in the butt, but it can be
done. I'm pretty sure that having a command called reboot that
"reboot"s the system, would be WAY too difficult for them to understand.
2) I got a response from Osama Abu-Aish that told me to use
Rundll32.exe and this is correct. There are some shell32 options you
can pass to this command that do a number of things (although the
options are passed in a very unconventional way. I have listed a small
number of them below.
rundll32.exe shell32,SHExitWindowsEx X
where the last "X" is a number.
0 - LOGOFF
1 - SHUTDOWN
2 - REBOOT
4 - FORCE
8 - POWEROFF
Or any combination thereof, by adding the values together, giving 16
possible shutdown/restart sequences.
I wish there was a better place to document something like this as it's
obvious that Microsoft isn't offering it up very readily.
Chris Tooley
More information about the samba-ntdom
mailing list