Scripting Blog

A place to learn about PowerShell and share stories of automation

Hey, Scripting Guy! How Do I Count the Number of Words in a Group of Office Word Documents?

Hey, Scripting Guy! I have a folder that contains a number of Microsoft Word documents that are all related to a specific project. I need to know the number of words in all of those Word documents. This is because the project is billable based upon the number of words. In the past, I used Explorer to open each file to get the word count ...

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

In this post:   How Can I Change the Internet Explorer Title Bar? Hey, Scripting Guy! In which programming language should I write to change the Internet Explorer title bar? -- NN Hello NN, You can use VBScript, Jscript, Windows PowerShell, or anything you wish. For Internet Explorer, you can add the following...

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

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 GUI to identify...

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

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 is that the ...

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

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 computers in the ...