Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

KIXTART SHUTDOWN() function usage

Posted on 2008-06-13
1
Medium Priority
?
587 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 15

Accepted Solution

by:
Ralf Klatt earned 500 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

When we want to run, execute or repeat a statement multiple times, a loop is necessary. This article covers the two types of loops in Python: the while loop and the for loop.
We live in a world of interfaces like the one in the title picture. VBA also allows to use interfaces which offers a lot of possibilities. This article describes how to use interfaces in VBA and how to work around their bugs.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.
Starting up a Project

719 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