Scripting Blog

A place to learn about PowerShell and share stories of automation

Hey, Scripting Guy! Quick-Hits Friday: The Scripting Guys Respond to a Bunch of Questions (7/31/09)

     How Can I Migrate AutoText When I Upgrade from One Version of Microsoft Office to Another? Hey, Scripting Guy! We are in the process of converting from Office 2003 to Office 2007. Many people use AutoText and I am trying to automate the process of converting or bringing over their AutoText. I created the below ...

Hey, Scripting Guy! How Can I Move a Group from One Organizational Unit to Another?

<?xml:namespace prefix = v ns = "urn:schemas-microsoft-com:vml" /><?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /> Hey Scripting Guy! I need to be able to move a group from one organizational unit to another. The problem is that our network has thousands of groups and organizational units. What I ...

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 same script multiple times to add a user to multiple groups. It should be easy to do, right...

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 so that I can later add the newly approved members to the group. I have checked around, and ...

Hey, Scripting Guy! How Can I Create Organizational Units with Windows PowerShell?

(Note  Today’s response is taken from Ed Wilson’s book, Windows PowerShell Step by Step, which is available on Microsoft Press.)Hey, Scripting Guy! At my company, we are often called upon to create objects in Active Directory. I do not mind using the Active Directory Users and Computers tool. It’s kind of fun to use. We ...

Feedback usabilla icon