Showing results for groups - Scripting Blog [archived]

Feb 22, 2007
Post comments count0
Post likes count0

How Can I Return Information For Each Member in a Group?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I write a script that, for each member in a group, returns the member’s name, department, address, title, and description?-- TL-V Hey, TL-V. You would have to mention the word “script,” wouldn’t you? Usually that wouldn’t bother us too much, but in the past 9 days or so the Scripting Guy who writes this column has loo...

Scripting Guy!VBScriptActive Directory
Sep 13, 2006
Post comments count0
Post likes count0

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

ScriptingGuy1
ScriptingGuy1

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 with that is: where do we start? For example, maybe we start with the teenagers a few houses d...

Scripting Guy!VBScriptActive Directory
May 12, 2006
Post comments count0
Post likes count0

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

ScriptingGuy1
ScriptingGuy1

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? That sounded like a mad scientist sort of thing, and we had visions of setting up a huge lab...

Scripting Guy!VBScriptActive Directory
Oct 24, 2005
Post comments count0
Post likes count0

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

ScriptingGuy1
ScriptingGuy1

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 and then dishonorably discharged from the US Cavalry. About all the Scripting Guy remembers from t...

Scripting Guy!VBScriptActive Directory
Oct 14, 2005
Post comments count0
Post likes count0

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

ScriptingGuy1
ScriptingGuy1

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 that out of our system, here’s a sample script that checks to see if Ken Myer belongs to both ...

Scripting Guy!VBScriptActive Directory