MSFN Forum: Autoshuting down workstation - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Autoshuting down workstation Rate Topic: -----

#1 User is offline   ugclee 

  • Group: Members
  • Posts: 8
  • Joined: 12-September 04

Posted 19 July 2005 - 05:50 AM

hi is there anyway to auto shutdown 200 workstation ? we runing windows 2000 server and windows 2000/xp workstation any freeware or build in stuff that let me shutdown all workstation @ say 5pm (go home at 5:15) im to lasy to walk up 3 level :P 1st floor 70pc 2nd floor 55 3rd floor 75 :P staff not turn them off :@


#2 User is offline   totoymola 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 944
  • Joined: 24-September 04

Posted 19 July 2005 - 07:32 AM

I have a similar problem. :) But mine is is a little more complicated.
http://www.msfn.org/board/index.php?showto...ndpost&p=354913

Yes there is a way to shutdown those computers. Try using the Shutdown utility from Windows2000 Resource Kit or Windows XP, or Sysinternals' PsShutdown. :)

PsShutdown v2.42 - Shutdown, logoff and power manage local and remote systems
Copyright (C) 1999-2005 Mark Russinovich
Sysinternals - www.sysinternals.com

usage:
psshutdown -s|-r|-h|-d|-k|-a|-l|-o [-f] [-c] [-t [nn|h:m]] [-e [u|p]:xx:yy] [-m "message"] [-u Username [-p password]] [-n s] [\\computer[,computer[,...]|@file]
   -a          Abort a shutdown (only possible while countdown is in progress)
   -c          Allow the shutdown to be aborted by the interactive user
   -d          Suspend the computer
   -e          Shutdown reason code (available on Windows XP and higher).
               Specify 'u' for unplanned and 'p' for planned
               shutdown reason codes.
               xx is the major reason code (must be less than 256)
               yy is the minor reason code (must be less than 65536)
   -f          Forces running applications to close
   -h          Hibernate the computer
   -k          Poweroff the computer (reboot if poweroff is not supported)
   -l          Lock the computer
   -m          Message to display to logged on users
   -n          Specifies timeout in seconds connecting to remote computers
   -o          Logoff the console user
   -p          Specifies optional password for user name. If you omit this
               you will be prompted to enter a hidden password.
   -r          Reboot after shutdown
   -s          Shutdown without poweroff
   -t          Specifies countdown in seconds until shutdown (default is 20) or
               the time of shutdown (in 24 hour notation)
   -u          Specifies optional user name for login to remote
               computer.
   computer    Shutdown the computer or computers specified
   @file       Shutdown the computers listed in the file specified


Reasons defined on this computer (U = unplanned, P = planned):
Type   Major   Minor   Title
  U      0       0     Other (Unplanned)
  P      0       0     Other (Planned)
  U      1       1     Hardware: Maintenance (Unplanned)
  P      1       1     Hardware: Maintenance (Planned)
  U      1       2     Hardware: Installation (Unplanned)
  P      1       2     Hardware: Installation (Planned)
  U      2       3     Operating System: Upgrade (Unplanned)
  P      2       3     Operating System: Upgrade (Planned)
  U      2       4     Operating System: Reconfiguration (Unplanned)
  P      2       4     Operating System: Reconfiguration (Planned)
  U      4       1     Application: Maintenance (Unplanned)
  P      4       1     Application: Maintenance (Planned)
  U      4       5     Application: Unresponsive
  U      4       6     Application: Unstable


#3 User is offline   ugclee 

  • Group: Members
  • Posts: 8
  • Joined: 12-September 04

Posted 20 July 2005 - 04:10 AM

so i have to make a bat file with all computer name in ?

#4 User is offline   Martin Zugec 

  • MSFN Expert
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 1,373
  • Joined: 24-January 04

Posted 20 July 2005 - 04:17 AM

Or you can use internal command shutdown with for /f wrapper.
Shutdown.bat
For /f "Usebackq " %%i in (`type computers.ini`) do (
	echo shutdown -s -t 01 -f -m \\%%i
	)


Computers.ini
computer1
computer2


#5 User is offline   ugclee 

  • Group: Members
  • Posts: 8
  • Joined: 12-September 04

Posted 20 July 2005 - 05:34 AM

that only for xp ant it ?

#6 User is offline   Martin Zugec 

  • MSFN Expert
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 1,373
  • Joined: 24-January 04

Posted 20 July 2005 - 05:36 AM

Yes... However you can shutdown w2k stations from xp

What OS is your admin machine?

#7 User is offline   ugclee 

  • Group: Members
  • Posts: 8
  • Joined: 12-September 04

Posted 21 July 2005 - 05:03 AM

server 2000 :) but i got a laptop with xp with admin tools installed :)
so how i shut down 2k workstations

#8 User is offline   Martin Zugec 

  • MSFN Expert
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 1,373
  • Joined: 24-January 04

Posted 21 July 2005 - 05:08 AM

You CAN shutdown workstations with command I provided. You only need to have this command on SERVER station, I mean station from which you will launch the mass shutdown. You dont need to have this command on every workstation you are trying to shut down.

Similar like accessing WMI from console - only master (server) have to contain ability, clients dont need it...

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy