Auto logoff + shutdown?

Discussion in 'Windows Server' started by mick, Jan 19, 2005.

  1. mick

    mick Guest

    Hey,

    On my network, users may only login between 7 and 9 hour (19:00 / 21:00)
    This is going great, 'outside' these times, users cannot login.

    But, if the user is already logged in, it won't logoff the user...
    How can i fix this problem? (the user must be automaticly logged off at
    21:00 hour)

    If it is possible, it would be nice that the user gets a msg 5 minutes prior
    (20:55 hour)

    Thanks in advance,
    Mick
     
    mick, Jan 19, 2005
    #1
    1. Advertisements

  2. Hi,

    One option would be to create a scheduled job that would run something like
    this:

    shutdown -s -m \\computer -t 300

    shutdown command line tool comes with Windows XP or newer operating system.
    For all options related to shutdown tool use

    shutdown /?
     
    Miha Pihler [MVP], Jan 19, 2005
    #2
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.