Top DevX Stories
Creating Custom Export Filters for StarOffice with XSLT
WPF Wonders: Using DataTemplates
Crystal Reports Family Offers Options for Developers
Avaya Aura Session Manager video
Avaya Aura Overview video
Search the forums:

Go Back   DevX.com Forums > DevX Developer Forums > VB Classic

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 02-22-2002, 08:46 AM
Chris
Guest
 
Posts: n/a
Shutdown remote computer


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
Reply With Quote
  #2  
Old 02-22-2002, 09:18 AM
Dean Earley
Guest
 
Posts: n/a
Re: Shutdown remote computer

"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


Reply With Quote
  #3  
Old 02-22-2002, 06:57 PM
L.J. Johnson
Guest
 
Posts: n/a
Re: Shutdown remote computer

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_...minNT0102/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>



Reply With Quote
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 02:48 AM.


Sponsored Links



Acceptable Use Policy

internet.comMediabistrojusttechjobs.comGraphics.com

WebMediaBrands Corporate Info


Advertise | Newsletters | Feedback | Submit News

Legal Notices | Licensing | Permissions | Privacy Policy


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.