Scripting Blog [archived]

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

How Can I Count the Number of Computers in a Domain?

(image) Hey, Scripting Guy! How can I count the number of computers in a domain?-- TN(image) (image) (image) Hey, TN. Here’s a true story for you. About 5 years ago, when one of the Scripting Guys first started at Microsoft, his group here (which might not be the most technically-savvy group at the company) needed to get a count of all ...

How Can I Add a User to a Group, but Only if that User is a Member of the IT Department?

(image) Hey, Scripting Guy! How can I add a user to a group, but only if that user is a member of the IT department?-- JV(image) (image) (image) Hey, JV. You know, this is your lucky day: not only are we going to show you how you can add a specified user to a group (assuming, of course, that this user is a member of the IT department), but...

How Can I Use ADO to Read a Text File Where All the Data is on a Single Line?

(image) Hey, Scripting Guy! I have a fixed-width text file which includes first name (6 characters), last name (13 characters), and department (9 characters) all on a single line. How do I read that using ADO?-- DW(image) (image) (image) Hey, DW. Well, to be perfectly honest, we don’t think you can read a file like this using ADO (...

Hey, Scripting Guy! How Can I Configure the Hide From Exchange Address Lists Property for All the Contacts in a Domain?

(image) Hey, Scripting Guy! How can I configure the Hide From Exchange Address Lists property for all the contacts in a domain?-- MM(image) (image) (image) Hey, MM. You know what the say: you can run, but you can’t hide (especially from Microsoft Exchange!). But what they forgot to add is that you can hide, as long as you’ve set the ...

How Can I Verify that None of My Local User Accounts have a Blank Password?

(image) Hey, Scripting Guy! How can I verify that none of my local user accounts have a blank password?-- TB(image) (image) (image) Hey, TB. To begin with, we should point out that at least some of you won’t need to make this check on computers within your domain; that’s because you’re using password policies in the domain that would...