XP timer?

Discussion in 'Software' started by Wenchie, Jan 31, 2004.

  1. Wenchie

    Wenchie I R teh brat

    Anyone know of a program or settng for Windows XP that can be set to shut down the computer regardless weather or not it's in use at a certain time of night?

    My mother needs to get my teenage brother off by 10pm on school nights without any argueing because he's missed his bus 4 days straight, and its already oassword protected so even if he restarted it, tough shiz.
     
  2. Wenchie

    Wenchie I R teh brat

    * b u m p *
     
  3. InYearsToCome

    InYearsToCome MajorGeek

    why yes I do. What i use is a plugin for Winamp2 called winamp switch.

    it lets me do either a stopwatch style countdown timer, or set a schedule for individual days of the wek to turn off... and even ON, the computer, forcing all other applications to close. comes in very handy.

    if you cant find the plugin on the winamp site, PM me and I will email it to you, its pretty small.
     
  4. Wenchie

    Wenchie I R teh brat

    Some questions before I download it, m'dear

    Do I have to reset it every day, or is it auto?
    Does it shut off even if programs are running?
    Will it eff up my moms computer?
     
  5. Wenchie

    Wenchie I R teh brat

    I need to find out If mom has winamp on there. I'm sure she does, but I have to intall a key logger too. Freaking punk.. he's an "Irox"
     
  6. Wenchie

    Wenchie I R teh brat

    Thanks, I'll pass the info on :) I appreciate it.
     
  7. iamien

    iamien Cptn "Eh!"

    They have two computerS? i wrote something while ago to shut down my network remotely.
    I could modify the program to just execute at a certain time i supose. Lemme know if you do need it done, not sure i have code but it would be a simple rewrite, i do have compiled versions of the Network one though.
     
  8. tahuya_rat

    tahuya_rat Private E-2

    Just thought of something else...

    you could just make a batch file:

    Open a text editor, and type the following:

    Then, save it as something like "C:\shutdown.bat"

    Now, you can use the Task Scheduler (Start -> Control Panel -> Scheduled Tasks -> Add Scheduled Task) to run "shutdown.bat" at 10pm every night!

    Hope this helps!

    -tahuya_rat

    P.S. -- If you really wanna get the little somethedie-somethin... Give him his own login, and limit his use so that he can't access the control panel or the directory that you save the "shutdown.bat" file in.

    That'll bunch his britches. But it'll get him to bed.
     
    Last edited: Feb 1, 2004
  9. tahuya_rat

    tahuya_rat Private E-2

    Use This Code Instead!!

    Now that I think about it, nothing would stop him from just starting the computer again after running that command...

    Paste the following into a text editor:

    This code is modified from the original post.

    This will log off the user instead of shutting down the system, in case another user is downloading or has some other task they don't want interrupted.

    Code:
     
    <package>
     <job id="shutdown">
      <script language="JScript">
       var WshNetwork = WScript.CreateObject("WScript.Network");
       var WshShell = WScript.CreateObject("WScript.Shell");
       var sTime = new Date();
       var iHour = sTime.getHours();
       if ((WshNetwork.UserName == "Guest") && ((iHour >= 22) || (iHour <= 6)))
       {
    	var oExec = WshShell.Exec("logoff");
       }
      </script>
       </job>
    </package>
    
    
    Then replace the "Guest" in line 8 with your brother's username. You'll probably want to set him up with guest privileges only, though.

    Save the file as something like "shutdown.wsf"

    Put a copy or a shortcut of the file in his startup folder.

    Then, follow the same directions as my last post to have the program execute every night at 10pm.

    That should keep him from logging in between 10pm and 6am...

    Hope this helps!

    -tahuya_rat
     
    Last edited: Feb 1, 2004

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds