Hello Hrrglburf,
Use Translate method of the IdentityReference class
WindowsIdentity wi = WindowsIdentity.GetCurrent();
foreach (IdentityReference identRef in wi.Groups)
{
IdentityReference account = identRef.Translate(typeof (NTAccount));
Console.WriteLine(account.Value);
}
---
WBR,
Michael Nemtsev [C# MVP] :: blog:
http://spaces.live.com/laflour
"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
HWindowsIdentity wi = WindowsIdentity.GetCurrent();
HConcerning 'wi.Groups'
Hwill get me 'id'-like values such as
H"S-1-5-21-141028557-4071250340-2647578567-1028"
HAnyone know how I can resolve that to get the groups name? rather
Hthan this long string identifier?
H>