Solved

KIXTART SHUTDOWN() function usage

Posted on 2008-06-13
1
578 Views
Last Modified: 2008-06-15
Kixtart version 4.21.0.0
The function syntax is well documented and I have decided on this:

$RC = SHUTDOWN(" ", PC will restart in 60 seconds...", 60, 0, 1)

I'm not sure how to execute this $RC variable. After this first line of code would I then
do something like  run $RC?

Also, I want to restart all PCs on the network (265, Win2K and WinXP) at a specific time.
Is this the best approach for that goal? The syntax above will restart the local PC so I might
have to input all the computer names through a variable...

Brad
0
Comment
Question by:bstillion
1 Comment
 
LVL 15

Accepted Solution

by:
Raisor earned 125 total points
ID: 21785172
Hi,

Please enter the following code into a batch and execute it:

$comps=COMNetView()
for each $comp in $comps
    if $comp<>@WKSTA
        $rc=fnWMIShutdown($comp,4)
    endif
next
$rc=fnWMIShutdown(@WKSTA,4)

PS: Snippet found at: http://www.kixtart.org/forums/ubbthreads.php?ubb=showflat&Number=120825&site_id=1#import


Best regards,
Raisor
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Visual xHarbour 1 77
object oriented javascript web form 8 76
wordappend challenge 8 86
Re-position the objects 7 52
This is an explanation of a simple data model to help parse a JSON feed
This is about my first experience with programming Arduino.
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now