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
LVL 1
jsturtzAsked:
Who is Participating?
 
Seelan NaidooMicrosoft Systems AdminCommented:
Use the AT Command to Schedule Tasks to remotely shutdown those machines..

http://support.microsoft.com/kb/313565/EN-US/

or Server Side

http://support.microsoft.com/kb/300160/EN-US/

---------------------------------------------------------------------------------------------------------------------------------------------

For Win2k, the switch options are different : http://support.microsoft.com/default.aspx?scid=kb;en-us;317371

shutdown \\computername /l /a /r /t:xx "msg" /y /c

\\computername: Use this switch to specify the remote computer to shut down. If you omit this parameter, the local computer name is used.

/l (Note that this is a lowercase "L" character): Use this switch to shut down the local computer

/a: Use this switch to quit a shutdown operation. You can do this only during the time-out period. If you use this switch, all other parameters are ignored.  

/r: Use this switch to restart the computer instead of fully shutting it down.

/t:xx: Use this switch to specify the time (in seconds) after which the computer is shut down. The default is 20 seconds.

"msg": Use this switch to specify a message during the shutdown process. The maximum number of characters that the message can contain is 127.

/y: Use this switch to force a "yes" answer to all queries from the computer.

This is one you are looking for =)

/c: Use this switch quit all running programs. If you use this switch, Windows forces all programs that are running to quit. The option to save any data that may have changed is ignored. This can result in data loss in any programs for which data is not previously saved.


0
 
ITDharamCommented:
First question we're going to ask is what are the clients OSs?
0
 
Seelan NaidooMicrosoft Systems AdminCommented:
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)



0
Network Scalability - Handle Complex Environments

Monitor your entire network from a single platform. Free 30 Day Trial Now!

 
jsturtzAuthor Commented:
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
0
 
ITDharamCommented:
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
0
 
jsturtzAuthor Commented:
sean,

thanks for the followup, and clarification.

jim
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.