Scripting Blog [archived]

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

How Can I Check to See if a User Exists in an NT 4 Domain?

(image) Hey, Scripting Guy! How can I check to see if a user exists in an NT 4 domain?-- PA(image) (image) (image) Hey, PA. You know, if you were to ask us, “How do you back your car out of your driveway?” we’d probably tell you that - after checking all the mirrors - we turn so that we’re facing directly out the back window of the...

How Can I Determine if the Local Administrator Account has been Renamed on a Computer?

(image) Hey, Scripting Guy! How can I determine if the local administrator account has been renamed on a computer?-- KF(image) (image) (image) Hey, KF. You know, our first thought was to tell you to use ADSI and try to bind to the local administrator account on the computer; if that failed, that would mean that there was no account named ...

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 Purge All the Print Jobs on a Windows 2000 Print Server?

(image) Hey, Scripting Guy! How can I purge all the print jobs on a Windows 2000 print server?-- KC(image) (image) (image) Hey, KC. This is one of those questions we hate, not because we don’t have an answer for it - we do - but because we have to temporarily abandon one of the core tenets of the Scripting Guy Way of Life. That tenet - ...

How Can I Disable the Guest Account on a Computer?

(image) Hey, Scripting Guy! How can I determine whether or not the Guest account is enabled on a computer and, if it is, disable it?-- PR(image) (image) (image) Hey, PR. At last: a question for which there is a very simple, very straightforward answer. This isn’t to minimize the importance of the task: in general, it’s highly ...