Scripting Blog [archived]

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

How Can I Delete an Active Directory Object that Contains Other Objects?

(image) Hey, Scripting Guy! How can I delete an Active Directory object that contains other objects?-- TS(image) (image) (image) Hey, TS. Ah, yes, the dreaded “objects that contain other objects” dilemma. Is there a way to delete an Active Directory object that contains other objects? Let’s see if we can find one. For those of you ...

Hey, Scripting Guy! How Can I Access Active Directory on a Specific Domain Controller?

(image) Hey, Scripting Guy! How can I access Active Directory on a specific domain controller?-- SD (image) (image) (image) Hey, SD. You know, one of the cool things about Active Directory is that you usually don’t need to access the directory service on a specific domain controller. Because Active Directory information is replicated ...

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 Count the Number of Times a User has Logged on to a Computer?

(image) Hey, Scripting Guy! How can I count the number of times a user has logged on to a computer?-- DE(image) (image) (image) Hey, DE. How can you count the number of times a user has logged on to a computer? Good question and, ultimately, the answer might be: you can’t. But let’s at least explore some possible solutions and see if ...