I keep looking this up:
[Sourcecode language=”C#”]
var account = new NTAccount(“username”);
var sid = (SecurityIdentifier)account.Translate(typeof(SecurityIdentifier));
[/sourcecode]
You Ain't Gonna Need It
I keep looking this up:
[Sourcecode language=”C#”]
var account = new NTAccount(“username”);
var sid = (SecurityIdentifier)account.Translate(typeof(SecurityIdentifier));
[/sourcecode]