Esempio n. 1
0
 public static void DomainGroupMembers(String ip, String domain, String username, String password, String group)
 {
     if (String.IsNullOrEmpty(username))
     {
         using (DomainGroups dg = new DomainGroups(ip))
         {
             dg.QueryGroupMembers(group);
         }
     }
     else
     {
         using (DomainGroups dg = new DomainGroups(ip, username, password))
         {
             dg.QueryGroupMembers(group);
         }
     }
 }
Esempio n. 2
0
 public static void DomainGroups(String ip, String domain, String username, String password)
 {
     if (String.IsNullOrEmpty(username))
     {
         using (DomainGroups dg = new DomainGroups(ip))
         {
             dg.Query();
             dg.Print();
         }
     }
     else
     {
         using (DomainGroups dg = new DomainGroups(ip, username, password))
         {
             dg.Query();
             dg.Print();
         }
     }
 }