Scripting Blog [archived]

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

How Can I Copy My Users’ Phone Number Attribute to Their Description Attribute?

(image) Hey, Scripting Guy! How can I copy a user’s phone number to his or her description for all the users in Active Directory?-- DL(image) (image) (image) Hey, DL. You know, the Scripting Guy who writes this column considers today’s column to be his all-time favorite. Why? Because while you’re at work reading this he hasn’t even ...

How Can I Configure an Active Directory Account So the Password Never Expires?

(image) Hey, Scripting Guy! How can I configure an Active Directory user account so that the account password never expires?-- BB(image) (image) (image) Hey, BB. Before we start we have a question for you: wouldn’t you agree that Catch-22 is one of the four greatest novels ever written? We ask that because, in his English class, the ...

How Can I Bind to an Active Directory User Account Using Windows PowerShell?

(image) Hey, Scripting Guy! I’ve been playing around with Windows PowerShell, and I find it interesting. However, I have a problem. I’d like to use PowerShell as a quick way to get information about an Active Directory user account, but I can’t figure out how to bind to a user account. Any suggestions?-- BW (image) (image) (...

How Can I Use a Script to Create a Sequential Series of User Accounts?

(image) Hey, Scripting Guy! For purposes of testing, I often need to create multiple user accounts like this: pgeorge01, pgeorge02, etc. How can I write a script that automatically creates the next account in the sequence; that is, pgeorge03?-- RG(image) (image) (image) Hey, RG. You know, after our last experiment went horribly, horribly ...

How Can I Distinguish Between Local Users and Domain Users?

(image) Hey, Scripting Guy! When using a script to return members of the local Administrators account, how can I distinguish between local users and domain users?-- KS(image) (image) (image) Hey, KS. You know, many years ago there was a TV game show called What’s My Line? The premise of the show was that some person with an unusual ...