Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Restricting Logon times

  • 19-09-2007 12:04pm
    #1
    Registered Users, Registered Users 2 Posts: 7,020 ✭✭✭


    Any way I can restrict logon times on a standalone XP machine ?

    21/25



Comments

  • Registered Users, Registered Users 2 Posts: 3,772 ✭✭✭jameshayes


    if it's for an internet café - use a long bat with nails on one end


  • Registered Users, Registered Users 2 Posts: 7,020 ✭✭✭uch


    Nah it's to stop th ekids using the PC late when I'm not there, thus keeping them up half the night

    21/25



  • Registered Users, Registered Users 2 Posts: 514 ✭✭✭paulusdu


    If its not Windows XP Pro, then i don;t think that it ships with System Policy editor. You could use tis to create a system policy and restrict a lot of things

    You could always hide the mouse :-)


  • Registered Users, Registered Users 2 Posts: 68,317 ✭✭✭✭seamus


    What version of XP?

    This can be done quite easily with VBScript (below).

    This script checks if the current system time is between 10pm and 8am. If it is, it executes a forced shutdown on the system.

    You can add this as a startup script - the machine won't even get to the logon screen before shutting down.

    You could also create a scheduled task on the machine which kicks off at 10pm and runs every five minutes (say for an hour), running this script. So if someone is logged in, once 10pm comes, the machine shuts itself down and you can't log back into it.

    A more sensible script would be used as a logon script and check the username of the person logged in. If it's you or the Administrator, then it proceeds. If it's anyone else, then it logs them out. This means that your machine isn't completely inaccessible after 10pm.

    Of course if your kids have admin rights, then this is useless. They'll figure out how to disable it.
    Dim currtime 
    currtime = Hour(Now)
    WScript.echo currtime
    If (currtime > 22 AND currtime < 24) OR (currtime > -1 AND currtime < 8) Then
    	strShutdown = "shutdown -s -t 0 -f"
        set objShell = CreateObject("WScript.Shell")
        objShell.Run strShutdown
    End If
    Wscript.Quit
    


Advertisement