Beispiel #1
0
        public static void IsADUser()
        {
            Domain domain = Domain.GetCurrentDomain();
            var    d      = new ADDomain(domain.Name.ToString());

            if (d.IsADAccount("ryan") == true)
            {
                Console.WriteLine("The account exists.");
            }
            else
            {
                Console.WriteLine("The account does not exist.");
            }
        }