Re: setting logon time limits

From: Bryce (bryceATmiltonDOTcom)
Date: 05/24/02


From: "Bryce" <bryceATmiltonDOTcom>
Date: Fri, 24 May 2002 14:43:25 -0700


    Hmm, the web page indicated that the ability to logout the user isn't
built in (which you've now worked around successfully), but I got the
impression that specifying valid\invalid logon hours was functional in a
standalone machine... Did you try the page's instructions and issue the
commands to set valid logon hours for your children's accounts? That should
prevent them from simply logging back in when it's not their turn. If it
doesn't work, you could modify your scheduled task to also do the following:

    SHUTDOWN -l -f -t 30
    NET USER %intransigent_offspring#1's_account_name% /active:no
    NET USER %intransigent_offspring#2's_account_name% /active:yes

The /active:no switch disables a logon and /active:yes enables it. So in
the end, you'd have two or more CMD files scheduled to run in the evenings:
The first would logoff kid1, disable his\her account, and enable kid2's
account. And the second CMD file would do the opposite resulting in
domestic harmony until they start squabbling over whose turn it is to play
with the XBox ;-)

-Bryce

"Rob" <rpayne1@cogeco.ca> wrote in message
news:OPjmO$0ACHA.992@tkmsftngp02...
> Wonderful Brice that works like a charm. This will save any argument. as
> ling as they don't figure out that they can just log back in. Thanks a lot
> Bryce you are a god send.
> Rob
>
> "Bryce" <bryceATmiltonDOTcom> wrote in message
> news:#dn2EFvACHA.2196@tkmsftngp04...
> > Since shutdown is in the path, you should be able to paste that
> command
> > directly into the Task Scheduler wizard. You could also paste it into
> > notepad and save as a .BAT or CMD file.
> >
> > -Bryce



Relevant Pages

  • Re: Windows Scheduler
    ... then give the account used for the ... scheduled job the right to run as a batch job. ... > had logon error .. ... >> I facing an unknow issue in Windows Scheduler. ...
    (microsoft.public.win2000.general)
  • Re: Task scheduler problem
    ... "Pegasus (MVP)" wrote: ... the account you use is not authorised to run scheduled jobs. ... Security Settings / Local Policy / User Rights / Logon as a batch job. ... i have a problem with task scheduler. ...
    (microsoft.public.win2000.general)
  • Re: schedule reboot
    ... Are you sure that you entered the correct password? ... Does this account have administrative privileges? ... Did you examine the Task Scheduler report? ... > Logon account: Owner ...
    (microsoft.public.windowsxp.setup_deployment)
  • Re: Task scheduler problem
    ... the requested logon type at this computer." ... Security Settings / Local Policy / User Rights / Logon as a batch job. ... The attempt to log on to the account associated with the task failed, ... i have a problem with task scheduler. ...
    (microsoft.public.win2000.general)
  • [EC-SA-01.2003] Windows XP "welcome screen" exposes the names of all the members of the l
    ... logon screen with what is called "Welcome Screen". ... (including the original administrator account, ... Using the "welcome screen" actually disables / ignores the security ...
    (Bugtraq)