Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!
var MyDomain = new PrincipalContext(ContextType.Domain, "MyDomain"); GroupPrincipal grp = GroupPrincipal.FindByIdentity(MyDomain, IdentityType.Name, "MyGroupName"); foreach (var p in grp.GetMembers(true)) testing += p.Name + "<br>";
var MyDomain = new PrincipalContext(ContextType.Domain, "MyDomain"); UserPrincipal usr = UserPrincipal.FindByIdentity(MyDomain, Request.LogonUserIdentity.Name); foreach (var p in usr.GetGroups()) testing += "<br>" + p.Name;
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
|testing a port being open in firewall||6||56|
|function that i need to run every 1 min in win form app||6||42|
|is a device online||4||46|
|Group Gridview Data and bold 1st line of new item type||1||10|
Join the community of 500,000 technology professionals and ask your questions.