Ejemplo n.º 1
0
    public void Add(string user)
    {
        ADGroup Group  = new ADGroup();
        Choose  Choose = new Choose();
        char    count  = Convert.ToChar(Console.Read());

        switch (count)
        {
        case '1':
            Group.AddUser("mail_rds", user);
            break;

        case '2':
            Group.AddUser("sharepoint", user);
            break;

        case '3':
            Group.AddUser("lucanet", user);
            break;

        case '4':
            Group.AddUser("fullaccess", user);
            break;

        case '5':
            Group.AddUser("regadmins", user);
            break;

        case '6':
            Group.AddUser("mail_rds_GPS", user);
            break;

        case '7':
            Choose.Remove(user);
            break;

        default:
            break;
        }
        //return groupName;
    }