• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 362
  • Last Modified:

Automatic logoff when idle or at specific time?

Running Windows 2000 Advanced Server as our DC, all clients have XP Professional with a few still on Win2k Pro.

What I was wondering is, is there a way to logoff all users at a specific time? (say like 6pm everyday or if they are idle for more than an hour for example). We are having problems with users not logging off when they leave at 5pm. So we are trying to find a solution that would automatically log them off if they forget.

Is there a policy for this under Win2K server or a 3rd party free/cheap solution?
0
goalie35nyr
Asked:
goalie35nyr
  • 6
1 Solution
 
CrazyOneCommented:
Take look at this page
http://www.geocities.com/eecrazyone/crazyone.html

SHUTDOWN AUTOMATION

Shutdown/Restart

For Win2000 and XP. The utility is non-configurable and its main use is for using the Task Scheduler to turn off or restart the machine. It will not prompt for saving any current open files nor will it save any open files. It commences directly into shutting down the machine. Once invoked it can't be stopped. To have the machine do a Restart use the following switch /r
Example C:\Shutdown\Shutdown.exe /r

Also you can create two shortcuts and place them on your Start Menu and assign a hotkey to each shortcut. One shortcut would be for powering down the machine and the other would be for restarting the machine using the /r switch.
---------------

Wizmo developed by Steve Gibson

"Wizmo is a multipurpose, miscellaneous Windows function, "catch all" with a growing list of uncommon but useful features and capabilities."

SHUTDOWN TRIGGER COMMANDS
DRIVE OPEN (EJECT) and CLOSE (LOAD)
WINDOWS SCREEN SAVER COMMANDS
WIZMO'S SCREEN SAVER COMMANDS
AUDIO CONTROL COMMANDS
GRAVITON SCREEN SAVER PARAMETERS
---------------

PsShutdown Copyright © 2000 Mark Russinovich
Sysinternals

This is a clone of the NT/Win2000 resource kit shutdown utility with the same options without having to buy the Resource Kit.
---------------


Exit Windows Copyright © Marty List
JSI FAQ

"Exitwindows.exe doesn't have the remote shutdown capability of shutdown.exe from the Resource kits (Windows 2000 or Windows NT), but it does have the ability to initiate a power down, which shutdown.exe does not."
0
 
CrazyOneCommented:
If you go to that page there are links that will take you do the page of the vendor of those utilities
0
 
CrazyOneCommented:
And this one
http://www.xpertdesign.de/english/sw_xecutor_info.htm

X-ecutor (c) 1998-2002 Andreas Spang

Win 95/98/ME/NT/2000/XP
Runs programs at system startup or shutdown
You can specify different conditions under which your programs should be started
You can activate programs at specific times or on specific days of the week.
Runs programs only once a day if you want to
Shutdown the system automatically to a specified time
Shutdown the system automatically if it is idle for a specified amount of minutes
0
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

 
CrazyOneCommented:
XP Has as shutdown utility

Syntax for Windows XP:

      SHUTDOWN [options] [-m [\\ComputerName]]  

options
   -M \\Computer  : A remote computer to shutdown.
   -L          : logoff current user

   -c "Msg"    : An optional shutdown message
   -S          : Shutdown

   -R          : Shutdown and reboot

   -A          : Abort a system shutdown during the timeout period.

   -T:xx       : Set the timer for system shutdown in seconds.[20 sec. default]

   -F          : Force running applications to close.
                 ATTENTION: If you use the -F parameter shutdown will not
                            prompt for File-Save in any open applications.
                            This will result in a loss of all unsaved data!!!

   -d u:xx:yy   : List a USER reason code for the shutdown.
   -d P:xx:yy   : List a PLANNED reason code for the shutdown.
                   xx Specifies the major reason code (0-255)
                   yy Specifies the minor reason code (0-65536)
When using this command to reboot a server - the shutdown can be made faster if the services are halted using NET STOP - the NT shutdown process will normally allow about 30 seconds to ensure each running service has time to stop.
e.g.

net stop "Microsoft Exchange Internet Mail Service"
net stop "Microsoft Exchange System Attendant" /y
wait 20
shutdown /Y /T:5 /C /R
0
 
CrazyOneCommented:
If you have the Win2000 Resource Kit it to has a shutdown utility.

http://www.microsoft.com/windows2000/techinfo/reskit/rktour/server/S_tools.asp
0
 
YarnoSGCommented:
Sysinternals (http://www.sysinternals.com)has an even better shutdown tool, PsShutdown (FREEWARE) that lets you just LOGOFF someone, as well as Shutdown & Power Down, Shutdown & Reboot.

HTH
-Steven Yarnot
http://yarnosg.home.insightbb.com

0
 
goalie35nyrAuthor Commented:
CrazyOne,

Thanks! Lots of useful info. We now have it working and logging everyone off at 6pm. :)

Thanks again!
goalie35nyr
0
 
CrazyOneCommented:
You are welcome. :>)
0

Featured Post

[Webinar On Demand] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

  • 6
Tackle projects and never again get stuck behind a technical roadblock.
Join Now