Click here to Skip to main content
15,861,168 members
Home / Discussions / C#
   

C#

 
AnswerRe: Telegram.Bot doesn't invoke Bot.OnMessage Pin
ZurdoDev15-Jul-20 6:17
professionalZurdoDev15-Jul-20 6:17 
QuestionMessage Closed Pin
13-Jul-20 21:16
umeshamin13-Jul-20 21:16 
AnswerRe: Former English teacher solves a math problem with Python. Pin
Pete O'Hanlon13-Jul-20 21:22
subeditorPete O'Hanlon13-Jul-20 21:22 
AnswerRe: Former English teacher solves a math problem with Python. Pin
OriginalGriff13-Jul-20 21:50
mveOriginalGriff13-Jul-20 21:50 
QuestionActive Directory Question Pin
Kevin Marois13-Jul-20 10:15
professionalKevin Marois13-Jul-20 10:15 
AnswerRe: Active Directory Question Pin
Richard Deeming13-Jul-20 22:25
mveRichard Deeming13-Jul-20 22:25 
GeneralRe: Active Directory Question Pin
Kevin Marois14-Jul-20 7:47
professionalKevin Marois14-Jul-20 7:47 
GeneralRe: Active Directory Question Pin
Richard Deeming14-Jul-20 23:04
mveRichard Deeming14-Jul-20 23:04 
active directory - How to get list of OU using AccountManagement (C#) - Stack Overflow[^]

You can extend the GroupPrincipal to search for OUs:
C#
[DirectoryRdnPrefix("OU")]
[DirectoryObjectClass("organizationalUnit")]
public class OuPrincipal : GroupPrincipal
{
    public OuPrincipal(PrincipalContext context) : base(context)
    {
    }
}
You should then be able to use this in a similar way to the other code to find the child OUs.



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer

Questionwhich website learn and solution C# window Application Pin
KNOWEDGE SHARE12-Jul-20 2:50
KNOWEDGE SHARE12-Jul-20 2:50 
AnswerRe: which website learn and solution C# window Application Pin
OriginalGriff12-Jul-20 4:29
mveOriginalGriff12-Jul-20 4:29 
GeneralRe: which website learn and solution C# window Application Pin
Gerry Schmitz12-Jul-20 6:28
mveGerry Schmitz12-Jul-20 6:28 
AnswerRe: which website learn and solution C# window Application Pin
Richard MacCutchan12-Jul-20 6:35
mveRichard MacCutchan12-Jul-20 6:35 
AnswerRe: which website learn and solution C# window Application Pin
Dave Kreskowiak12-Jul-20 7:36
mveDave Kreskowiak12-Jul-20 7:36 
GeneralRe: which website learn and solution C# window Application Pin
OriginalGriff12-Jul-20 9:10
mveOriginalGriff12-Jul-20 9:10 
AnswerRe: which website learn and solution C# window Application Pin
Super Lloyd12-Jul-20 15:21
Super Lloyd12-Jul-20 15:21 
AnswerRe: which website learn and solution C# window Application Pin
Member 1480992814-Jul-20 21:06
Member 1480992814-Jul-20 21:06 
QuestionDns.GetHostAddresses Question Pin
pkfox11-Jul-20 6:19
professionalpkfox11-Jul-20 6:19 
QuestionRe: Dns.GetHostAddresses Question Pin
Richard MacCutchan11-Jul-20 6:51
mveRichard MacCutchan11-Jul-20 6:51 
AnswerRe: Dns.GetHostAddresses Question Pin
pkfox11-Jul-20 22:39
professionalpkfox11-Jul-20 22:39 
GeneralRe: Dns.GetHostAddresses Question Pin
Richard MacCutchan11-Jul-20 22:54
mveRichard MacCutchan11-Jul-20 22:54 
AnswerRe: Dns.GetHostAddresses Question Pin
Gerry Schmitz12-Jul-20 6:45
mveGerry Schmitz12-Jul-20 6:45 
QuestionOnly one usage of each socket address - error Pin
pkfox10-Jul-20 1:22
professionalpkfox10-Jul-20 1:22 
AnswerRe: Only one usage of each socket address - error Pin
Richard MacCutchan10-Jul-20 3:19
mveRichard MacCutchan10-Jul-20 3:19 
GeneralRe: Only one usage of each socket address - error Pin
pkfox10-Jul-20 4:39
professionalpkfox10-Jul-20 4:39 
GeneralRe: Only one usage of each socket address - error Pin
Richard MacCutchan10-Jul-20 4:58
mveRichard MacCutchan10-Jul-20 4:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.