Solved

KIXTART SHUTDOWN() function usage

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Problem to error 4 73
SCRIPT65535: Unexpected call to method or property access video html 5 explorer 3 87
Problem to Alipay 10 67
Adding a countdown to HTA 12 92
Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
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 …

713 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