How to Identify When Someone has Loggedin to Windows using a Windows Service? RRS feed

  • Question

  • I need to find the domain and NTAccount of the person who has logged in to Windows.

    I have created a Windows Service which runs under Local System account. My understanding is that generally windows services when set to start automatically, start before any user has logged on to Windows.

    How can I identify which user has logged in to Windows from inside my Windows Service?

    Is there any event for that such as OnLoggedOn(...)?

    Any help is much appreciated.
    Tuesday, November 24, 2009 11:50 AM


All replies