Solved

KIXTART SHUTDOWN() function usage

Posted on 2008-06-13
1
579 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
word0 challenge 4 66
allswap challenge 6 79
How To Loop - Python 19 79
Re-position sub-options beneath the TAB 7 79
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
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.

867 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

16 Experts available now in Live!

Get 1:1 Help Now