So, I’m kind of stuck here…
I’m writing a program that should be able to list all users in the local administrator group on a MS Windows Server 2008 R2.
The problem here is that I’m only allowed to use .NET 2.0 – so I’m not able to use the GroupPrincipal Class… Which would have made this a really easy task.
Any pointers would be appriciated!
Cheers!
Jeez!
Don’t know what I was thinking really – it’s so simple!
All creds to Masoud Tabatabaei – found the following codesnippet on:
http://csharptuning.blogspot.se/2007/09/how-to-get-list-of-windows-user-in-c.html