+ Reply to Thread
Results 1 to 4 of 4

First login and Last logout times of windows system

  1. #1
    Registered User
    Join Date
    02-27-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    77

    First login and Last logout times of windows system

    Hi,
    I'm working on a vba project that needs to execute the windows system user's name, first login and last logout times of the day. The output should be updated(append on daily basis) in excel sheet colums A, B and C respectively

    Any response/recommendations will be greatly appreciated

    Thanks,
    Chinraj

  2. #2
    Forum Contributor
    Join Date
    06-16-2011
    Location
    London
    MS-Off Ver
    Excel XP
    Posts
    276

    Re: First login and Last logout times of windows system

    How long have you been working on this VBA project and what have you got so far?

  3. #3
    Registered User
    Join Date
    02-27-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    77

    Re: First login and Last logout times of windows system

    Thank you for the reply.

    I'm in beginning the of project(not expert with vba). Let me explain in detail, I want to measure the employee's in and out time on daily basis. I have two ideas to get this done.
    1. Have a simple excel sheet with farmula(=now) in cell B2 and Environ("Username") in cell A2. the same sheet have been uploaded in Windows "Scheduled Tasks" to run at when user "Log on" the system.
    Now I want to run the event macro when the users shutdown/logoff the computer and capture the details in cell C2 of the excel sheet.

    2. There is a Event Log in the system(eventvwr.msc), we can export into csv too. From that we can get the source date, time, user, source, event id etc., i don't know the script that how to import the event log into local drive.

    thank you again.

  4. #4
    Forum Contributor
    Join Date
    06-16-2011
    Location
    London
    MS-Off Ver
    Excel XP
    Posts
    276

    Re: First login and Last logout times of windows system

    I think you're barking up the wrong tree here completely.

    Take user log on/off times direct from the server records. Trying to do this in Excel....well it could be done but why bother when windows server is already logging this data?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Finding the First Login and Last Logout Times of Employees
    By ExcelTip in forum Tips and Tutorials
    Replies: 19
    Last Post: 02-17-2018, 01:47 AM
  2. Maximum value from login and logout times
    By callan133 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-17-2013, 07:22 AM
  3. log in time out for employee login logout system
    By codillajocyl in forum Excel General
    Replies: 0
    Last Post: 09-11-2013, 10:53 PM
  4. login and logout time , with total login time ,break> 1 hours
    By shrinivasmj in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-12-2013, 05:37 AM
  5. Spreadsheet to determine login / logout times
    By fullysic in forum Excel General
    Replies: 2
    Last Post: 12-08-2010, 09:25 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1