Scripting Blog [archived]

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

How Can I Specify the Computers a User Can Use to Log On to the Domain?

(image) Hey, Scripting Guy! How can I configure a user account so that the user can only log on to the domain using specific computers?-- RB(image) (image) (image) Hey, RB. You know, at one point we had some really good solutions for you; unfortunately, Microsoft’s legal department said no to every single one of them. In their view, “...

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 Disable a Computer Account?

(image) Hey, Scripting Guy! How can I disable a computer account?-- MD(image) (image) (image) Hey, MD. You know, our first thought when we read your question was to ask our very own Peter Costantini, a scripting guru who’s done a lot of work with Active Directory. For better or worse, however, Peter’s originally from New Jersey and is ...

How Can I List All the Attributes Used by the Computer Class in Active Directory?

(image) Hey, Scripting Guy! How can I list all the attributes used by the Computer class in Active Directory?-- KP(image) (image) (image) Hey, KP. Thanks for your question. In response, yes, it is true that the Kirkland Fire, the Colt League baseball team coached by one of the Scripting Guys, won the city championship this past weekend, ...

How Can I Change the User and Computer Account Description Attributes Each Time a User Logs On?

(image) Hey, Scripting Guy! How can I change the user and computer account Description attributes each time a user logs on? I’d like the Description to indicate who logged on, and when.-- GG(image) (image) (image) Hey, GG. This is actually a pretty good idea. One question we get asked all the time is this: “How can I get a list of all ...