rpc shutdown with windows2000 offers you four possibilities what you want to do:
-logoff current user
-shutdown (which really shuts down w2k but doesn't power off)
-reboot
-power off (if supported) (which does what I want)
and three methods how to deal with applications, which block the process:
-never
-when no reaction
-always
Window: my computer > administration > properties > extended > shutdown
The windows api also knows these different methods (look for exitwindowsex on m$dn).
My problem is that remote shutdown from windows 2000 machines (german) only works if the remote machine is in the same domain. The samba net rpc shutdown command doesn't depend on that detail. However, it doesn't solve my problem because I want to power off the machines to avoid disk damage (8 hours but not more for "class C" drives says an Austrian IBM branch) but that command doesn't offer you that different ways shutdown methods.
Willi
James Willard wrote:
Willi,
Most PCs that use ATX power supplies will turn themselves off after a
shutdown. If your PCs do, then using 'net rpc shutdown' should start the
shutdown process, which once completed, the PC (not samba) is
responsible for turning itself off. I have seen some ATX systems that
won't turn themselves off and instead they sit at the w2k "Turn off
Computer" screen. I haven't really messed with them enough to track down
why. My guess is the motherboard doesn't support the "off" command, or
the right w2k power management drivers weren't loaded.
James Willard
[EMAIL PROTECTED]
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Willi Mann
Sent: Monday, December 16, 2002 1:02 PM
To: samba-technical
Subject: net rpc shutdown - how to poweroff
Hi!
Is there any possibility to not only shut down but to power off a remote
(w2k) machine with the net rpc shutdown command?
I'd really need it because some users tend to be too lazy to power off their machines.
Please help me.
Willi
