I have some windows services written in C#. When somebody stops or starts the service, I would like to be able to determine who is was and log that information.
I tried logging Environment.UserName
but that evaluates to SYSTEM even on my local machine.
Also, for the time being these services are running on Windows 2000 server.