I have used the LookupAccountName and I get a full SID. The S-1-0-..... and that is great. Thanks.
However what I need it for is to pass to ReportEvent so that when I write an Event to the Event Log that the User is associated rather than showing N/A. ReportEvent is looking for a Long and I...
I am trying to figure out a way to get the current logged
in users SID. I need this so that when logging an Event
in Event Log that the users account will be properly
associated with the event (instead of showing up as N/A).
Any assistance would be greatly appreciated.
TIA
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.