URGENT: Can't set the user name in user field in event properties

Hi every experts,

I am writing a C# application for writting event log.
I want to write event log from client machine to server machine.
And I want to view the log in windows event viewer on server machine.

In my program, I create a EventLog and EventInstance object first, and use WriteEvent to write event.

But i find a question on event viewer. It show "N/A" in user field in event properties. How can I put the user name in it, instead of "N/A"

Urgent, Thx a lot.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories