Question

Have a PC automatically shutdown after 10 minutes of inactivity under Any Windows XP User.

Asked by: atkfrg56

In windows xp, how can i have the computer shutdown after 10 minutes or such of inactivity. The computer will most likely be at the 'log in' screen...so there is not a user logged in. The Windows power options are per-user...not per machine as far as I can see. My BIOS does not support auto-shutdown or standby either, mainly because its a desktop computer and not a laptop. Any suggestions on how to make my computer shutdown, anytime after 10 minutes of no usage?

Thx

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2005-01-31 at 11:21:08ID21295754
Tags

shutdown

,

automatically

,

after

,

pc

,

inactivity

Topic

Operating Systems Miscellaneous

Participating Experts
7
Points
500
Comments
15

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. Inactive button
    How do you set a button inactive?
  2. Linux power managment. how to shutdown after inactive??
    Ive got a Linux Fedora 4 box with all the fancy packages running. Its strictly a learning tool and isnt used for serving or web hosting or anything like that. I login into it via SSH thru PuTTY to access it. My quesion is: 1) Is there a tool or program available similar to ...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: SheharyaarSaahilPosted on 2005-01-31 at 11:26:32ID: 13185709

Hello atkfrg56 =)

Q:  How can I auto logoff or automatically log a user out of Windows after a period of inactivity?

A:  This can be done in Windows 2000 / XP / .NET using Group Policy. Control Panel, Administrative Tools > local security policy > local policies \ security options \ "Automatically log off users" and/or "Amount of idle time required before disconnecting session"

ref >> http://securityadmin.info/noframes/faqget.asp#autologoff

 

by: mansnesPosted on 2005-01-31 at 11:59:51ID: 13186021

You don't want to log it off you want to shut it down, right?  If the machine is XP then you can create a scheduled task to run shutdown.exe (found in %windri%\system32) and set it to wait until the system has been idle for whatever length of time.  To do so, Go to Start -> Control Panel -> Scheduled Tasks -> Add Scheduled Task.  Select the shutdown app in system32 and add the "-s" switch after it (no quotes).  Select daily and any time after the current time plus some (so it doesn't execute while you're setting it up).  Then enter credentials of a local admin account and on the last page of the wizard, enable the checkbox for advanced settings.  On the Schedule tab, change it from Daily to When Idle and set the time you want it to wait.  

If you're on an OS prior to XP, you'll need to do the same thing, but use a script to shut it down.  Copy the text below and save it to a file with the .vbs extension (such as shutdown.vbs) to a location that is in the system PATH (such as c:\winnt):

Set colOperatingSystems = GetObject_
    ("winmgmts:{(Shutdown)}").ExecQuery("Select * from Win32_OperatingSystem")
 
For Each objOperatingSystem in colOperatingSystems
    ObjOperatingSystem.Win32Shutdown(1)
Next


Then set your scheduled task to be cscript.exe shutdown.vbs.  Optionally, you can just use the whole path to the script in the scheduled task, i.e. cscript.exe c:\scripts\shutdown.vbs

 

by: atkfrg56Posted on 2005-01-31 at 12:07:30ID: 13186091

I asked to shutdown...not log off. Is there a way to make it shutdown instead of logging off?

 

by: atkfrg56Posted on 2005-01-31 at 12:08:25ID: 13186100

mansnes,
That looks like a good idea. I am going to try that tonight and let you know how it went. thx

 

by: SheharyaarSaahilPosted on 2005-01-31 at 12:10:05ID: 13186117

read here about Terminator >> http://www.cybercom-software.com/freestuff.htm

Users hogging computers? Kids staying on the Internet too long? With Terminator, you can restrict the amount of time users can spend on a PC. You can set the PC to automatically logout, reboot or shutdown at a specific time each day (eg. 5:30pm), or you can set it to logout, reboot or shutdown after a set period of time (eg. 60 minutes).  Simple to setup and run, Terminator is invisible to users - they won't even know it is running.

* Logout, Reboot or shutdown your PC at a specified time, or after an elapsed period of time
* Optional forced exit mode will force non-compliant applications to close
* Password protected
* Enable or disable automatic startup when Windows starts
* Shut down instances of Terminator
* Dynamic updating of settings when Terminator is already running
* Runs on Windows 95/98/Me/NT/2000/XP

 

by: atkfrg56Posted on 2005-01-31 at 13:03:18ID: 13186850

mansnes,
omgwhee!!!111!1!! that scheduler idea works perfectly. now thats what i call laying down a thick helping of ownership. awesome, thanks!

 

by: mansnesPosted on 2005-01-31 at 23:25:30ID: 13190310

Right on!  glad it solved your problem...

Ownage!  :)

 

by: geostantPosted on 2005-02-21 at 13:21:25ID: 13366688

Here it goes :
> Right click on your desktop
> choose properties
> go to the screen-saver tab
> on that screen you will find "power managment"
> go on and on the new screen you will find settings that can set your computer to shut down after certain of time


as well, there are some nice small applets that handle power managment
and are much more dynamic then the integral windows power-managment

on these programs you can set for example a constant time in the day that your computer will
shut down or will turn-on

you can as well program it to turn on and then play your favorite MP3 as an alarm clock
neat :D

 

by: UserXPosted on 2005-02-27 at 17:33:37ID: 13416761

Hello mansnes,
I tried using your code in Windows 2000 and I get a little window appears when the comp tries to run the script:

Windows Script Host

Script: C:\scripts\shutdown.vbs
Line: 2
Char: 5
Error: Expected Statement
Code: 800A0400
Source: Microsoft VBScript complation error

The code I used was
Set colOperatingSystems = GetObject_
    ("winmgmts:{(Shutdown)}").ExecQuery("Select * from Win32_OperatingSystem")
 
For Each objOperatingSystem in colOperatingSystems
    ObjOperatingSystem.Win32Shutdown(1)
Next

I saved the file as shutdown.vbs in C:\scripts\ and in c:\winnt\

Also I dont fully understand what you mean by:

"Then set your scheduled task to be cscript.exe shutdown.vbs.  Optionally, you can just use the whole path to the script in the scheduled task, i.e. cscript.exe c:\scripts\shutdown.vbs"

I have to select an executable or some sort of a file or at the very least, type the path to the executable or file. The OS just rejects commands like "cscript.exe c:\scripts\shutdown.vbs"
(No inverted commas), it will try to put c:\ in front of that.

All help is appreciated,
~User X

 

by: HouthoffPosted on 2005-02-28 at 14:48:06ID: 13424538

You could change to code to:
----------
Set colOperatingSystems = GetObject ("winmgmts:{(Shutdown)}").ExecQuery("Select * from Win32_OperatingSystem")
 
For Each objOperatingSystem in colOperatingSystems
    ObjOperatingSystem.Win32Shutdown(1)
Next
----------


Change command to c:\windows\system32\cscript.echo c:\scripts\shutdown.vbs

 

by: mansnesPosted on 2005-02-28 at 22:14:49ID: 13426803

UserX:
Ok, I just copied the text from your posting above, except I consolidated the first statement into a single line (removing the underscore):

Set colOperatingSystems = GetObject("winmgmts:{(Shutdown)}").ExecQuery("Select * from Win32_OperatingSystem")

And I saved all four lines in the WINNT folder on a Windows 2000 system as shutdown.vbs.  Then I went and created a dummy scheduled task.  To do that, I just bypassed the wizard by right clicking in the Scheduled Tasks window and chose New->Scheduled Task from the contextual menu.  I then opened the Properties of the task and for the Run field I just typed in "cscript.exe shutdown.vbs" (without the quotes).  In the Start In field I put "C:\WINNT" (again, no quotes, but it really doesn't matter).  I entered valid credentials and scheduled the task and it ran fine - the system shut down.  I'm guessing there was some problem with script execution parsing the underscore, which should be read as "this line is continued on the next line".  Try it all on one line like I just wrote here.

My statement about the path was just if you had saved shutdown.vbs somewhere that wasn't in the system path.  The system path is the default places Windows looks for stuff without having to be told specifically.  The system path lets you do things like type in just cmd.exe instead of c:\winnt\system32\cmd.exe to get a command prompt because c:\winnt\system32 is in the system path.  So if you saved shutdown.vbs in the c:\scripts folder, you would have to use "cscript.exe c:\scripts\shutdown.vbs" - get it?

 

by: UserXPosted on 2005-03-01 at 06:14:23ID: 13429279

Got it, i will try to implement this solution later.
I managed to download shutdown.exe which is performing the same function, the system shuts itself down at 7 every morning.

~User X

 

by: alexsim2004Posted on 2005-03-27 at 12:56:33ID: 13640568

I don't know if anyone has posted this already but:
Go onto control panel (preferably on classic view) click on system
click on power options, then click on where it says:
turn off hard disks in: ....
enter 10 mins or whatever time you want
then if you want, do the same to the monitor
click OK
I hope this was helpsul to you

 

by: alexsim2004Posted on 2005-03-27 at 12:58:13ID: 13640572

oops:
2 problems with my above post:
1 - Someone already posted that
2 - It doesnt shut off when theres no usage it just shuts off at that time

 

by: lscapaPosted on 2005-07-28 at 06:08:48ID: 14545195

umm yeh.. if nobody else has mentioned this....

Only system admins (people in the administrative group) now have the rights to change the power settings. Yes, you can change them under a normal user, but guess what? The system doesn't save the reg change when you log off.

So in reality if you log in as admin set the power settings to what you want then vola! They stay set to the admin's profile settings. Now if everyone is a admin.. then I don't understand your question. Even if it is set as a script to run shutdown.exe they could still pause or delete the task.

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...