Click to See Complete Forum and Search --> : Shutdown remote computer


Chris
02-22-2002, 08:46 AM
Hello,

Does anyone have any advice on an easier way to shutdown a remote computer
other than using the Initiate Shutdown command?

Thank you,

Chris

Dean Earley
02-22-2002, 09:18 AM
"Chris" <cjc@precisionelectronics.net> wrote in message news:3c763d98@10.1.10.29...
>
> Hello,
>
> Does anyone have any advice on an easier way to shutdown a remote computer
> other than using the Initiate Shutdown command?
>

Whats wrong with the InitiateSystemShutdown function? Thats what its designed for.

--
Dean Earley (dean.earley@icode.co.uk)
Assistant Developer

iCode Systems

L.J. Johnson
02-22-2002, 06:57 PM
Chris,

> Does anyone have any advice on an easier way to shutdown a remote computer
> other than using the Initiate Shutdown command?

Well, that API is pretty easy...

However, if both the local computer and remote computer(s) are running WMI
(W2k+, or installed from MS on NT 4.0 or Win9x), then you could look at:

http://gethelp.devx.com/techtips/nt_pro/10_minute_solutions/10minNT0102/10mi
nNT0102.asp

The actual WMI code is only a few lines -- all the rest of the project is
the GUI stuff plus a couple of API calls for auxiliary information. In fact,
with a couple of simple mods, you could take the WMI code, and put it in a
script and run it from there.

--
L.J. Johnson, Slightly Tilted Software
Microsoft MVP (Visual Basic)
LJJohnson@SlightlyTiltedSoftware.com or LJJohnson@mvps.org
<http://www.SlightlyTiltedSoftware.com>
Ask The NT Pro at <http://www.devx.com/gethelp>