Scripting Blog [archived]

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

Hey, Scripting Guy! How Can I Use Windows PowerShell to Add a Domain User to a Local Group?

(image) Hey, Scripting Guy! I recently came across your article where you showed people how to use VBScript to add a domain user to a local group. How can I do that same task using Windows PowerShell?-- KE(image) (image) (image) Hey, KE. Before we begin we thought we should mention that the Scripting Guy who writes this column has a new ...

How Can I Create a Folder for Each User in My Domain?

(image) Hey, Scripting Guy! How can I create a folder for each user in my domain? I’d like the folder name to consist of the user’s first initial and their last name (for example, KMyer).-- GN (image) (image) (image) Hey, GN. You know, this has been an interesting week for the Scripting Guys. Why? Because absolutely nothing interesting...

How Can I Tack a Prefix Onto the Telephone Numbers of All the Users in My Domain?

(image) Hey, Scripting Guy! How can I tack a prefix onto the telephone numbers of all the users in my domain?-- JB(image) (image) (image) Hey, JB. It’s Monday morning as this column is being written, and the Scripting Guy who actually writes this column is still a bit tired from driving across the state and back in order to attend his ...

How Can I Determine Which Domain Controller Authenticated a User?

(image) Hey, Scripting Guy! In my logon script how can I determine the name of the domain controller that authenticated the user?-- CK(image) (image) (image) Hey, CK. You know, one of the unwritten rules for being a Scripting Guy is that you should never do anything hard more than once a week. (Why is this an unwritten rule? Mainly because...