次の方法で共有


Active Directory Sites Tidbit!

FYI, there’s built-in support for Active Directory sites (since 2.0), including support for adjacent sites (not relying on name, etc). :)

using System.DirectoryServices.ActiveDirectory;

foreach (var site in ActiveDirectorySite.GetComputerSite().AdjacentSites)

{

    Console.WriteLine(site.Name);

}

Thanks to Chris Martinez for this tidbit!


Jimmy Zimms is thinking we all should learn something new today.