I\'m writing a Windows Service application which listens for connections and performs certain tasks as instructed from a different application running on another computer on
The CodeProject article "Using the Local Security Authority to Enumerate User Sessions in .NET" might be what you are looking for. The code enumerates users and can identify which users (if any) are interactive (i.e., which users are real people).