Force Users to Logoff after closing application

Discussion in 'Windows Server' started by atropos_a, Sep 23, 2004.

  1. atropos_a

    atropos_a Guest

    I've looked everywhere to see if this is possible but, can't find anything
    on the matter.

    I have an XP pro workstation (server is a 2k3) that will only be used to
    access a web based application. The application uses a certificate to
    authenticate the computer, then the user has to enter his user name and
    password.

    The problem is that there will be more than one user for the application
    (the application will only be accessible through this one workstation) and I
    don't want the users to be signing into the application without first having
    signed onto the workstation with their own user account.

    Is there a way to get XP to force users to logoff when IE closes? I know
    the easiest way to get around this is simply to have a dedicated user for
    the workstation but, that circumvents auditing and I need to know who is
    logged on to the station and when. I do have winexit.scr installed but,
    there is still time for someone else to log onto the application before the
    screensaver kicks in.
     
    atropos_a, Sep 23, 2004
    #1
    1. Advertisements

  2. This may be too simplistic an answer, but have you considered using a
    batchfile to launch IE and issue the logoff command after IE closes?
     
    Patrick Kremer, Sep 23, 2004
    #2
    1. Advertisements

  3. atropos_a

    atropos_a Guest

    Hi Patrick,

    Thanks for the suggestion, this hasn't occurred to me - mostly because I am
    not sure how to go about doing this. Could you explain?
     
    atropos_a, Sep 23, 2004
    #3
  4. You can create a simple batch file to launch a website by using a command
    line. Create a new batch file called test.bat and paste the following
    command line into it:

    "C:\Program Files\Internet Explorer\IEXPLORE.EXE" http://www.microsoft.com

    This will launch IE and send it to microsoft.com

    If you copy that line and paste it into the batch file a second time, you'll
    notice that IE launches and the batch file stays open. When you close IE, it
    launches the second time.

    At this point, all you'd need to do would be to locate a command line to
    force a log off, I don't know of any offhand but i'm sure they exist. Then
    replace the second call to IE with the logoff command.
     
    Patrick Kremer, Sep 23, 2004
    #4
  5. atropos_a

    atropos_a Guest

    Cool!! Thanks, this works exactly how I wanted it to. All I did to force
    the logoff was to call the XP logoff.exe file.
     
    atropos_a, Sep 23, 2004
    #5
  6. atropos_a

    Spin Guest

    Whoa! What exactly are the lines in the batch file and where exactly is the
    XP logoff.exe file?
     
    Spin, Sep 24, 2004
    #6
    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.