Scripting Blog [archived]

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

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 ...

How Can I Determine When a User Last Changed His or Her Password?

(image) Hey, Scripting Guy! How can I determine when a user last changed his or her password?-- MG(image) (image) (image) Hey, MG. A long time ago one of the Scripting Guys worked at a local university. In one of the departments there it was easy to determine when a user last changed his or her password: that’s because the administrative...

How Can I Launch Two Applications, Wait Until One Program Ends, and Then Close the Other?

(image) Hey, Scripting Guy! Here’s what I’d like to do: I want a script that will launch two executable files. After the first application closes I’d like the script to close the second application and then quit. How can I do that?-- MK (image) (image) Hey, MK. You know, this is the kind of question we like. Why? Because it...