Petri.com forums Home Forums Start Page Forums Frequently Asked Questions FAQ Member List Members List
Go Back   Petri IT Knowledgebase Forums > Client Operating Systems > Windows 2000 Pro, XP Pro
Petri.com is happy to award RicklesP the title of Most Valuable Member !!!
Register Calendar Calendar Search Petri IT Knowledgebase Forums Search Todays Posts Today's Posts Mark Forums Read
Notices

Force a logoff or a restart after a set period of idle...

Force a logoff or a restart after a set period of idle...

this thread has 5 replies and has been viewed 11358 times

Closed Thread
 
Thread Tools Search this Thread Display Modes
  #1  
Old 5th January 2005, 20:40
Goober Goober is offline
Casual
Casual
 
 Join Date: Dec 2004
  6 month star 12 month star
 Location: Spokane, Washington
 Posts: 3
  Send a message via MSN to Goober
 Reputation: Goober is on a distinguished road (10)
Default Force a logoff or a restart after a set period of idle...

Looking for a way to force a logoff or a restart after a set period of idle (XP Pro). We have several XP Pro boxes that are used by rotating employees or by many employees. They will do their email or work or whatever and get up and walk away or leave. The next person that sits at that machine is faced with a locked workstation. The only way they can login is by performing a hard power off and restart. Looking to avoid this. Any ideas?

Greg
  #2  
Old 5th January 2005, 21:45
ahinson's Avatar
ahinson ahinson is offline
Moderator
 
 Join Date: Mar 2004
  6 month star 12 month star
 Location: FL
 Posts: 1,821
 Reputation: ahinson is just really niceahinson is just really niceahinson is just really niceahinson is just really niceahinson is just really nice (440)
Default RE: Force a logoff or a restart after a set period of idle...

Sure check this out...

How-to setup Winexit.scr
http://support.microsoft.com/default...b;en-us;297267

Winexit.scr
http://support.microsoft.com/default...99&sd=tech

There are a couple of different ways you can manage this with Group Policy. There are a couple of settings in the administrative templates. User Settings|Administrative Templates|Control Panel|Display. One of the articles referenced has some pretty good detail on managing this process through the registry. You can deploy registry values using scripts or to leverage Group Policy fully you can check out MS's free Registry Extension.
__________________
Andrew

** Remember to give credit where credit is due and leave reputation points where appropriate **
  #3  
Old 6th January 2005, 02:22
Http://Xof7.tk Http://Xof7.tk is offline
Casual
Casual
 
 Join Date: Jan 2005
  6 month star 12 month star
 Location: Spokalou Washington
 Posts: 17
 Reputation: Http://Xof7.tk is on a distinguished road (10)
Default RE: Force a logoff or a restart after a set period of idle...

I didnt read those articles but what you could do is make a batch file that says



Code:
 Shutdown -L -c "text"
and then name the batch file "whatever.scr"
After that i beleive it is the "%localDisk%/system" that you have to drop it in and the windows should automatically find it. Oh and "text" would be whatever you want it to say when the logoff event popsup.
__________________
Come chill at my site
-----------------------
http://Xof7.tk
  #4  
Old 6th January 2005, 04:10
ahinson's Avatar
ahinson ahinson is offline
Moderator
 
 Join Date: Mar 2004
  6 month star 12 month star
 Location: FL
 Posts: 1,821
 Reputation: ahinson is just really niceahinson is just really niceahinson is just really niceahinson is just really niceahinson is just really nice (440)
Default RE: Force a logoff or a restart after a set period of idle...

Quote:
Originally Posted by Http://Xof7.tk
I didnt read those articles but what you could do is make a batch file that says



Code:
 Shutdown -L -c "text"
and then name the batch file "whatever.scr"
After that i beleive it is the "%localDisk%/system" that you have to drop it in and the windows should automatically find it. Oh and "text" would be whatever you want it to say when the logoff event popsup.
Hmm...

I tested it...

It doesn't appear to work, see the image.

It would have been nice if it was that simple.

__________________
Andrew

** Remember to give credit where credit is due and leave reputation points where appropriate **
  #5  
Old 6th January 2005, 16:31
danielp's Avatar
danielp danielp is offline
Senior Member
Wrote the book
 
 Join Date: Oct 2003
  6 month star 12 month star
 Location: Near Tel-Aviv, Israel
 Posts: 5,189
 Reputation: danielp has much to be proud ofdanielp has much to be proud ofdanielp has much to be proud ofdanielp has much to be proud ofdanielp has much to be proud ofdanielp has much to be proud ofdanielp has much to be proud ofdanielp has much to be proud ofdanielp has much to be proud of (1198)
Default RE: Force a logoff or a restart after a set period of idle...

Like ahinson, I use WINEXIT. Give it a try.
__________________
Cheers,

Daniel Petri
Microsoft Senior Premier Field Engineer
MCSA/E, MCTS, MCITP, MCT
  #6  
Old 7th January 2005, 00:22
Goober Goober is offline
Casual
Casual
 
 Join Date: Dec 2004
  6 month star 12 month star
 Location: Spokane, Washington
 Posts: 3
  Send a message via MSN to Goober
 Reputation: Goober is on a distinguished road (10)
Default RE: Force a logoff or a restart after a set period of idle...

Quote:
I didnt read those articles but what you could do is make a batch file that says



Code:
Shutdown -L -c "text"

and then name the batch file "whatever.scr"
After that i beleive it is the "%localDisk%/system" that you have to drop it in and the windows should automatically find it. Oh and "text" would be whatever you want it to say when the logoff event popsup.
I had already tried this and also got the error stating it isn't a win32 application.

Thanks for the tip on Winexit.scr. Have tested it an works great. Also am using a HKEY setting to hide the screensaver tab on the display properties so it won't be changed by the user...

Thanks again....
Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
force logoff on xp zilcali GPO 3 30th August 2007 19:30
Problem in Force Logoff imran_mcse Windows Server 2000 / 2003 / 2003 R2 6 30th August 2007 14:03
Batch: Unattended installation of Software Dumber General Scripting 7 26th February 2007 14:20
VBS/Batch: creating ou's and computers and users Dumber General Scripting 39 24th February 2007 00:18
PHP extensions installations , IIS crash after enable mbstri igoldman Windows Server 2000 / 2003 / 2003 R2 0 7th April 2005 10:42


All times are GMT +3. The time now is 15:58.

Steel Blue 3.5.4 vBulletin Style ©2006 vBEnhanced
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
 

Valid XHTML 1.0!   Valid CSS!

Copyright 2005 Daniel Petri