Link to home
Start Free TrialLog in
Avatar of jsturtz
jsturtz

asked on

win2k,2k3 script command to reboot users??

we have a customer who cannot manage to make the network users logout of our application.  we are redoing some parts of it and occassionally need to have all users out while we update programs or data.  the wee hours of the nite when they are closed would work for this if we were onsite.  however, we are accessing remotely.

their administrator knows how to lock the users out of the network between say 10pm & 4am, but doesnt know how to make sure the users are out of our application then.  unless someone runs around and physically checks this.

at another site i put program on the users (winoff) that will force a reboot at a programmed time and this works fine.

it has been suggested to us that the windows network management software may have some command that can be issued to the users to do the same thing (or maybe do a logout and close all running programs).

anyone know how this could be done as a centralized operation rather than individually on each user?

thanks.

jim
Avatar of ITDharam
ITDharam
Flag of United States of America image

First question we're going to ask is what are the clients OSs?
From a Windows XP command prompt you can run the "shutdown" command. Also has a GUI mode..


C:\>shutdown /?
Usage: shutdown [-i | -l | -s | -r | -a] [-f] [-m \\computername] [-t xx] [-c "comment"] [-d up:xx:yy]

        No args             Display this message (same as -?)
        -i                      Display GUI interface, must be the first option
        -l                      Log off (cannot be used with -m option)
        -s                     Shutdown the computer
        -r                     Shutdown and restart the computer
        -a                     Abort a system shutdown
        -m \\computername       Remote computer to shutdown/restart/abort
        -t xx                              Set timeout for shutdown to xx seconds
        -c "comment"                Shutdown comment (maximum of 127 characters)
        -f                      Forces running applications to close without waning
        -d [u][p]:xx:yy         The reason code for the shutdown
                                u is the user code
                                p is a planned shutdown code
                                xx is the major reason code (positive integer lss than 256)
                                yy is the minor reason code (positive integer lss than 65536)



Avatar of jsturtz
jsturtz

ASKER

sean,

thanks for the quick reply on the local shutdown.

do you know of a way this can be told to run via the win2k/win2k3 administrative software, or must it be put on each computer.  i presume as a task for the scheduler.  

as this is a native windows program is it any better/worse for doing a shutdown compared to commercial/shareware/freeware programs like WinOff, or do they merely have more options wrapped around them?

thanks.

jim
You aren't reading the experts responses.

Question:  What OSs are the clients, because there IS an easy answer for XP, which Sean just told you.  Using the propper switch performs a remote shutdown.

     -m \\computername       Remote computer to shutdown/restart/abort
ASKER CERTIFIED SOLUTION
Avatar of Seelan Naidoo
Seelan Naidoo
Flag of South Africa image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jsturtz

ASKER

sean,

thanks for the followup, and clarification.

jim