- Create a security identifier for the current domain
- var sid = new SecurityIdentifier(WellKnownSidType.AccountDomainUsersSid, /* what do I write here? */);
- WindowsIdentity id = WindowsIdentity.GetCurrent();
- Console.WriteLine(id.User.AccountDomainSid);