Created
June 4, 2012 13:09
-
-
Save Dynyx/2868261 to your computer and use it in GitHub Desktop.
Find local domains
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DirectoryEntry root = new DirectoryEntry("WinNT:"); | |
foreach (DirectoryEntry dom in root.Children) { | |
foreach (DirectoryEntry entry in dom.Children) { | |
if (entry.Name != "Schema") { | |
Console.WriteLine(entry.Name); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment