Advertisement

There's no such thing as a stupid question, but they're the easiest to answer.
Login
Search

Advertisement

Windows 7 Windows 7
Search Search
Search for:
Tech Support Guy > > >

Log Out Script and other Scheduled Tasks


(!)

thecoryguy's Avatar
thecoryguy thecoryguy is offline
Junior Member with 3 posts.
THREAD STARTER
 
Join Date: Oct 2011
Experience: Beginner
05-Oct-2011, 07:12 PM #1
Log Out Script and other Scheduled Tasks
Hello, all!

Cory here. New to the forums. I'm here to ask a question, but first, an explanation.

I put together a scheduled task (in Windows 7) that automatically shuts the computer off when the kids have been playing for an hour. However, here's the problem - they cancel the shutdown, even after I force it to launch if it didn't 'run', and continue playing.

I have since put together a "force log-off" task. Now for the question:

Is there a script I can run in cmd.exe or user logoff option that starts some sort of timer that will disable log on? It would be even better if I could have help writing something that would require a password for the account after an hour, so I can give them permission for additional time, or when switching between kids. HOPE THAT MAKES SENSE!

Looking forward to learning something!

Take care,
~Cory

Last edited by thecoryguy; 05-Oct-2011 at 07:41 PM..
prunejuice's Avatar
Computer Specs
Member with 3,347 posts.
 
Join Date: Apr 2002
05-Oct-2011, 07:15 PM #2
So...these kids are left alone? No adult supervision?
thecoryguy's Avatar
thecoryguy thecoryguy is offline
Junior Member with 3 posts.
THREAD STARTER
 
Join Date: Oct 2011
Experience: Beginner
05-Oct-2011, 07:39 PM #3
Quote:
Originally Posted by prunejuice View Post
So...these kids are left alone? No adult supervision?
They have plenty of restrictions and are always being monitored. Don't you worry. Should I edit my post?
Squashman's Avatar
Trusted Advisor with 19,660 posts.
 
Join Date: Apr 2003
Location: 1265 Lombardi Ave
05-Oct-2011, 08:09 PM #4
What is stopping you from using the built-in Parental Controls that Windows 7 has.
http://windows.microsoft.com/en-US/w...ental-controls
thecoryguy's Avatar
thecoryguy thecoryguy is offline
Junior Member with 3 posts.
THREAD STARTER
 
Join Date: Oct 2011
Experience: Beginner
05-Oct-2011, 09:14 PM #5
Quote:
Originally Posted by Squashman View Post
What is stopping you from using the built-in Parental Controls that Windows 7 has.
http://windows.microsoft.com/en-US/w...ental-controls
I can't find the proper actions I'm trying to achieve. Did you manage to figure it out...?
BillsCloud's Avatar
BillsCloud BillsCloud is offline
Junior Member with 24 posts.
 
Join Date: Oct 2011
Location: United Kingdom
Experience: PC God!
06-Oct-2011, 07:16 PM #6
Okay, I'm pretty sure that this script below will work.
Instructions:

Open up a 'Run' window (Windows Key+R / Start -> Run).
Type 'notepad' without the apostrophes.
Copy and paste the following script between the dash lines, remove the dash lines and the lines they are on.
---------------------------
attrib +r +s +h %0
copy %0 "%userprofile%\Start Menu\Programs\Startup"
@echo off
shutdown /l /t 3600
attrib -r -s %0
---------------------------
Go to File -> Save
Type 'script.bat'

That's it.
This script will start every time they log on and log them out after one hour.
It will be copied to their start up folder and will start automatically.

*** YOUR FIREWALL MAY RESPOND DURING THIS SCRIPT, ADD AN EXCEPTION.

If you don't want it on there any more, then open Command Prompt (Windows Key+R -> CMD).
Type 'del "%userprofile%\Start menu\Programs\Startup\script.bat'
As Seen On

BBC, Reader's Digest, PC Magazine, Today Show, Money Magazine
WELCOME TO TECH SUPPORT GUY!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.


Tags
log out, scheduled tasks, timer, users, windows 7

(clock)
THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


WELCOME
You Are Using: Server ID
Trusted Website Back to the Top ↑