How to get history of windows login and logoff from Active Directory in C#

BeUnique 2,112 Reputation points
2024-04-03T06:49:50.7433333+00:00

currently i am working in IT organization. some of our colleagues are coming to office in various time.

so, my managers are struggling to get of each employee windows login time.

we are planning to develop one system which is when every employee logging into the system for everyday.

when we found like above details, we can develop reports like how many hours are employee spending for the official work.

So,i want get history of windows login everyday for all company domain users.

if users logging in wondows at everytime for a day, we want to capture the date and time of the details.

Is it possible to get the above said details and develop in .net..?

if i get the above information, my company saving lots of money..

This is very very urgent and it is required to implement in many places....

Pls. hep us to get the solution for the above....

Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
5,122 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,667 questions
0 comments No comments
{count} votes

Accepted answer
  1. Jing Zhou 5,210 Reputation points Microsoft Vendor
    2024-04-03T07:16:35.0333333+00:00

    Hello,

    Thank you for posting in Q&A forum.

    Please let me know if this is what you want:

    https://sid-500.com/2018/02/28/powershell-get-all-logged-on-users-per-computer-ou-domain-get-userlogon/

    Please Note: This response contains links to third parties, which we provide for convenience of reference, and Microsoft cannot guarantee the validity of any information and content in this link.

    Hope this answer can help you well.

    Best regards,

    Jill Zhou


1 additional answer

Sort by: Most helpful
  1. Castorix31 83,381 Reputation points
    2024-04-03T07:49:01.35+00:00