Welcome to TechNet Blogs Sign in | Join | Help

Browse by Tags

All Tags » groups   (RSS)

Hey, Scripting Guy! How Can I Add a User to Multiple Groups?

Hey Scripting Guy! It seems that I can never find what I need anymore. I am looking for a Windows PowerShell script that will add a user to multiple groups. The user and the group are in the same organizational unit, and I do not want to have to run the

Hey, Scripting Guy! How Do I Remove All Group Members in Active Directory?

Hey Scripting Guy! I have several groups created in Active Directory whose membership has changed dramatically. Rather than go through a long list of users and try to manually clean up the list, I would like to just delete all the users from the group

Hey, Scripting Guy! How Can I Identify All Local Users, Groups, and Services on a Local Computer?

Hey, Scripting Guy! I have several computers that seem to be identical, but they act like they are different. I mean, the same person set the computers up, so I imagine he followed the checklist and the machines should therefore be the same. But something

Hey, Scripting Guy! How Can I Create More Than One User, Assign Attribute Values, and Assign the Users to Groups?

Hey, Scripting Guy! I enjoyed your article yesterday about creating a local user account. However, for my purposes I need to be able to create more than one user. Also I would like to be able to assign values to attributes such as the description. If

How Can I Delete All the Users in an Active Directory Group?

Hey, Scripting Guy! How can I delete all the users in an Active Directory group? -- AA Hey, AA. You know, that’s something we Scripting Guys never thought about: a script that could eliminate all the users in a particular group. The only problem we have

How Can I Convert a Global Security Group to a Universal Security Group?

Hey, Scripting Guy! How can I convert a global security group to a universal security group? -- BB Hey, BB. We have to tell you the truth, we were pretty excited when we first read your email. Convert a global security group to a universal security group?

How Can I Remove a Group from the Local Administrators Group?

Hey, Scripting Guy! How can I remove a group from the local Administrators group? -- SB Hey, SB. One of the Scripting Guys has very vague memories of an old TV show called Branded , in which the hero (played by Chuck Connors) was accused of cowardice

How Can I Add a User to a Group if That User Belongs to Two Other Groups?

Hey, Scripting Guy! How can I check to see if a user is in both group A and group B and, if so, add that user to Group C? -- DH Hey, DH. Good heavens, how are we supposed to know that ?!? Sheesh. Sorry; we just always wanted to say that. Now that we have

How Can I List All the Groups in an OU?

Hey, Scripting Guy! How can I list all the groups in an OU? -- MK Hey, MK. You know, sometimes people ask us a question and then immediately apologize for having asked it, believing that the question is “way too easy for you guys.” In turn, that seems

How Can I Enumerate All the Universal Groups in Active Directory?

Hey, Scripting Guy! How can I enumerate all the universal groups in Active Directory? -- MW Hey, MW. You know, we’re glad you asked this question. Any time people talk about Active Directory then tend to talk about groups as if Active Directory had only

How Can I Add All the Users from an Existing Active Directory Group to a New Group?

Hey, Scripting Guy! How can I add all the users from an existing Active Directory group to a new group? -- TG Hey, TG. So you have a group (we’ll call it Group A) and you want to create an exact replica of that group (we’ll call it Group B). If we were

How Can I Tell Whether a Group Member is a User, a Computer, or Another Group?

Hey, Scripting Guy! How can I tell whether the member of a group is a user, a computer, or another group? -- ON Hey, ON. Interesting question and - to tell you the truth - one we’d never really thought about. It’s easy enough to list all the members of

How Can I Temporarily Add a Group to Another Active Directory Group?

Hey, Scripting Guy! I’d like to add an Active Directory group to a second group, but only for an hour; after an hour, I’d like remove that group from the second group. Can I do that with a script? -- JW Hey, JW. Well, this is definitely one of the more

How Can I Tell Whether a Group is a Security Group or a Distribution Group?

Hey, Scripting Guy! Is there any way to tell whether an Active Directory group is a security group or a distribution group? -- AW Hey, AW. As a matter of fact, there is; this script will tell you what type of group you’re dealing with: Set objGroup =

How Can I Rename an Active Directory Group?

Hey, Scripting Guy! How can I rename an Active Directory group? -- CL Hey, CL. This is actually pretty easy; as you’ll see, it only takes two lines of code. It’s not a hard problem, it’s just a little bit tricky. That’s because ADSI (at least when it
More Posts Next page »
 
Page view tracker