Scripting Blog [archived]

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

How Can I Compare the Memberships of Two Groups?

(image) Hey, Scripting Guy! Iโ€™m looking for a script that can get the memberships of two different groups, compare them, and then write out the differences. Can you help?-- LS(image) (image) (image) Hey, LS. When we received your question a week or so ago we thought, โ€œThatโ€™s a good question. Letโ€™s put it on the list and answer it...

How Can I Tell Which Service Packs Have Been Installed on a Computer?

(image) Hey, Scripting Guy! How can I tell which service packs have been installed on my computers?-- FR(image) (image) (image) Hey, FR. Thatโ€™s a very good question; as you know better than we do, in this day and age itโ€™s really important to make sure all your computers have the latest service pack, the latest hot fixes, and the ...

How Can I Get a List of the Devices That Aren’t Working?

(image) Hey, Scripting Guy! In Device Manager, any time a device isnโ€™t working that device is marked with a yellow exclamation mark. How can I use a script to get a list of the devices that arenโ€™t working? -- OL (image) (image) (image) Hey, OL. Sometimes in baseball a batter absolutely hammers one, but the ball takes a lucky ...

How Can I Terminate a Process with a Specific PID?

(image) Hey, Scripting Guy! If I have the PID, is there a way to kill a process using a script?-- JV(image) (image) (image) Hey, JV. You bet there is. For those of you who arenโ€™t familiar with the acronym, PID is short for Process Identifier, a unique ID number assigned to a process when it gets created. (Well, temporarily unique: as ...

How Can I Get a List of Exchange Servers Assigned to My Users?

(image) Hey, Scripting Guy! How do I get a list of the Exchange servers (msExchHomeServerName) assigned to the users in an OU?-- BG(image) (image) (image) Hey, BG. As you probably already figured out, you have two issues: you need to get a list of all the users in an OU, and then you need to figure out which Exchange server theyโ€™ve been ...