1. You are viewing our forum as a guest. For full access please Register. WindowsBBS.com is completely free, paid for by advertisers and donations.

logon logs

Discussion in 'Windows XP' started by OdLink, 2003/09/27.

Thread Status:
Not open for further replies.
  1. 2003/09/27
    OdLink

    OdLink Inactive Thread Starter

    Joined:
    2002/10/21
    Messages:
    92
    Likes Received:
    0
    I need to know if windows xp as any logs that log everytime we log on to windows (time; user; etc...)

    How can i see a record of everytime i started and ended windows session.

    thanks in advance...
     
    Last edited: 2003/09/28
  2. 2003/09/29
    OdLink

    OdLink Inactive Thread Starter

    Joined:
    2002/10/21
    Messages:
    92
    Likes Received:
    0
    well, i discovered this log :

    "c:\windows\system32\wbem\logs\winmgmt.log "

    but this only records the time i start up windows it doesn't record the time i shutdown windows...

    so if anyone knows a better way to know this please let me know...thanks
     

  3. to hide this advert.

  4. 2003/09/29
    Johanna

    Johanna Inactive Alumni

    Joined:
    2003/03/08
    Messages:
    2,402
    Likes Received:
    2
  5. 2003/10/01
    OdLink

    OdLink Inactive Thread Starter

    Joined:
    2002/10/21
    Messages:
    92
    Likes Received:
    0
    thanks for the reply, but that's a liitle to much... i only want to record the logon and shutdown of a computer....

    If windows makes this records? or if i can make a little program or batch file that does this for me?

    any help will be apreciated
     
  6. 2003/10/01
    Angel71

    Angel71 Inactive

    Joined:
    2003/09/01
    Messages:
    83
    Likes Received:
    0
    In XP Home auditing of logon/logoff events should be enabled by default. You can view the security log in event viewer for event IDs 528 & 538. In XP Pro, enable audit of logon events in the local security policy (in audit policy) under Admin Tools.

    In XP Pro you can also write batch files that run at logon/logoff or startup/shutdown and record the details you want. For example...

    Code:
    :: logon1.bat
    @echo off
    :: records user logons
    If not exist E:\Logs\MyLog.txt echo UserName    Date/Time > E:\Logs\MyLog.txt
    
    echo %UserName%     %Date% %Time% logon >> E:\Logs\MyLog.txt
    
    Code:
    :: logoff1.bat
    @echo off
    :: records user logoffs
    If not exist E:\Logs\MyLog.txt echo UserName    Date/Time > E:\Logs\MyLog.txt
    
    echo %UserName%     %Date% %Time% logoff >> E:\Logs\MyLog.txt
    
    Then run group policy editor (gpedit.msc) and add the appropriate batch file to User Configuration > Windows Settings > Scripts (Logon or Logoff).
     
  7. 2003/10/01
    Newt

    Newt Inactive

    Joined:
    2002/01/07
    Messages:
    10,974
    Likes Received:
    2
    Angel71 - very nice. Those bat files are outstanding. Short and effective.
     
    Newt,
    #6
  8. 2003/10/04
    lj50 Lifetime Subscription

    lj50 SuperGeek WindowsBBS Team Member

    Joined:
    2003/07/04
    Messages:
    2,801
    Likes Received:
    137
    Can you delete the entries in each log file without causing any damage to the system? It seems there is a log, a Recent File List, and a History List for every thing in Windows XP. I'm running XP Pro.
     
    lj50,
    #7
  9. 2003/10/05
    OdLink

    OdLink Inactive Thread Starter

    Joined:
    2002/10/21
    Messages:
    92
    Likes Received:
    0
    That's great Angel71, it's exately what i wanted, thanks for your help.
     
Thread Status:
Not open for further replies.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.