How do I get log details (current logon user /machine name) on remote server in window application?
We have a developed a windows application using c# to start/stop/execute a service (windows service written in .Net) on a remote server.
I need to maintain log information for the current logon user who started /stopped/executed the service on the remote server.That means on the remote server we need details(current logon user who invoked the service) in the event viewer . How can I achieve this?
Basically we have 3 buttons for start,stop,execute functions and below is simplified piece of code and need to maintan user log information(machine name/current logon user) on remote server Event viewer.