Scripting Blog [archived]

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

How Can I Enumerate All the Universal Groups in Active Directory?

(image) Hey, Scripting Guy! How can I enumerate all the universal groups in Active Directory?-- MW(image) (image) (image) Hey, MW. You know, we’re glad you asked this question. Any time people talk about Active Directory then tend to talk about groups as if Active Directory had only one type of group. It doesn’t. Instead, there are six...

How Can I Monitor the Event Logs for the Occurrence of a Specific Event?

(image) Hey, Scripting Guy! How can I monitor the event logs for the occurrence of a specific event?-- JP(image) (image) (image) Hey, JP. Why, you use an event log monitoring script, of course. (Yes, it’s hard to believe, but they really do pay us to come up with brilliant answers like that.) OK, maybe we should be a little more specific...

How Can I Dynamically Populate a List Box in an HTA?

(image) Hey, Scripting Guy! In my HTA, I would like to query a computer for a list of local user accounts, then dynamically create a list box containing those accounts. How can I do that?-- BN(image) (image) (image) Hey, BN. You know, if you’d ever seen the Scripting Guys in … action … you’d think twice about asking us a question ...

How Can I Determine the Beginning and Ending Date of the Previous Month?

(image) Hey, Scripting Guy! Given a specific date, how can I determine the beginning and ending date of the previous month? In other words, given 8/11/2005, I need to get back 7/1/2005 and 7/31/2005.-- PH(image) (image) (image) Hey, PH. You know, this was a tough question for us: after all, as Microsoft employees we’re always looking ...