Scripting Blog [archived]

Formerly known as the "Hey, Scripting Guy!" blog

Hey, Scripting Guy! How Can I Generate a List of All Groups of Which a User Is a Member?

(image) (image) Hey, Scripting Guy! I need to get a list of all the groups of which a user is a member. I do not mean the groups of which the user is a direct member, but I need to know all of the groups. You know that groups can be members of other groups, and other groups can be member of still further groups. There is no way using the...

Hey, Scripting Guy! Can I Get a List of All Users in a Domain Without Their Manager Attribute Populated?

(image) (image) Hey, Scripting Guy! I need to get a list of all the users that have set their manager in Active Directory. We have this Web application that allows users to populate information such as their phone number, their office location, and their manager. We actually paid a decent amount of money for this application. The problem...

Hey, Scripting Guy! How Can I Get a List of Domain Controllers in My Domain? (Part 2)

(image) (image) Hey, Scripting Guy! I need to obtain a listing of the domain controllers in my domain. I am thinking about using Windows PowerShell to query the Domain Controllers Organizational Unit, but I am not sure this is the right approach. Will this work? If it does work, will you write a Windows PowerShell script to query the ...

Hey, Scripting Guy! How Can I Get a List of Domain Controllers in My Domain? (Part 1)

(image) (image) Hey, Scripting Guy! I hope you do not think I am clueless, but I need to obtain a list of all the domain controllers in my domain. Can you help me out by writing a Windows PowerShell script to list all of the domain controllers in my domain? < p style="MARGIN: 0in 0in 8pt" class="MsoNormal">-- KH (image) Hello ...

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" /> (image) 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. ...