Scripting Blog [archived]

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

How Can I Return a List of All the Users Whose User Account Never Expires?

 (image) Hey, Scripting Guy! How can I return a list of all the users whose user account never expires?-- PG(image) (image) (image) Hey, PG. You know, no one - not even his own mother! - has ever claimed that the Scripting Guy who writes this column is a genius. Needless to say, then, the first time he read this question he thought it...

How Can I Change a User’s Primary Group?

(image) Hey, Scripting Guy! How can I change a user’s primary group?-- AS(image) (image) (image) Hey, AS. You know, one of the Scripting Guys knows how to make an incredibly rich rocky road brownie, a brownie that’s topped with melted marshmallows and walnuts and chunks of dark chocolate and all sorts of other good stuff. Now, some ...

How Can I Get a List of All the Users Whose Passwords Never Expire?

(image) Hey, Scripting Guy! How can I get a list of all the users whose passwords never expire?-- NW(image) (image) (image) Hey, NW. As you probably know, Internet gambling is illegal in the USA. That’s too bad, because if it wasn’t we’d be willing to bet $10 that the answer to your question will be this: search Active Directory. And...

How Can I Determine When an Active Directory User Account will Expire?

(image) Hey, Scripting Guy! How can I determine when an Active Directory user account will expire?-- JK(image) (image) (image) Hey, JK. By the way, please accept our apologies for hiding under the desk and pretending we weren’t in when your question arrived; we always get a little nervous any time we get questions involving dates and ...

How Can I Cause a User’s Password to Expire?

(image) Hey, Scripting Guy! How can I cause a user’s password to expire?-- GB(image) (image) (image) Hey, GB. You know, one thing people dislike about politicians is that any time you ask them a question many politicians will give you an answer to a different question. Even worse, if you press them on that point they’ll tell you that ...