Hey, Scripting Guy! How Can I Remove Everything From an Active Directory Group Except Other Groups?

Hey, Scripting Guy! How can I remove all the members of a group unless that member is another group? I need a group that has only other groups as members, no individual users, computers, contacts, etc.— TH Hey, TH. You’ll have to be patient with us this morning; after all, we’re sending this column over… Read more

Hey, Scripting Guy! How Can I Determine the Manager for All the Groups in Active Directory?

Hey, Scripting Guy! How can I return a list of all my Active Directory groups, along with the name of the user responsible for each group?— PL Hey, PL. You know, we realize that most of you are thinking, “Wow, this has been a busy month for you Scripting Guys. You guys really deserve to… Read more

Hey, Scripting Guy! How Can I Retrieve Time Zone Information for a Computer?

Hey, Scripting Guy! How can I retrieve time zone information for a computer?— AL Hey, AL. You know, over the Thanksgiving Day weekend the Scripting Guy who writes this column took some time to think about his job, and to think of ways in which he could do that job even better. (Note to the… Read more

Hey, Scripting Guy! How Can I Randomly Assign a Picture From the My Pictures Folder as the Computer Wallpaper?

Hey, Scripting Guy! I saw your column on randomly assigning a picture to use as the wallpaper on a computer. I’d like to do the same thing, except that, instead of picking from a predefined list of pictures, I’d like to randomly assign a picture from the user’s My Pictures folder. How do I do… Read more

Hey, Scripting Guy! How Can I Tell If a Time Occurred in the Morning or the Evening?

Hey, Scripting Guy! Given a time of day, is there an easy way to tell whether that’s a morning time or an evening time?— HG Hey, HG. Can you feel the excitement in the year, that sense of anticipation, the crackling energy and the flow of adrenalin? That can only mean one thing: the annual… Read more

How Can I Limit the Number of Characters That Can Be Typed Into a Textarea?

Hey, Scripting Guy! We have an HTA used for data entry. Included in that HTA is a text area where people can enter a maximum of 256 characters. I need to do two things: 1) limit the number of characters people can enter in the field to 256 (I can’t for the life of me… Read more

Hey, Scripting Guy! How Can I Tell If a Computer Has a SmartCard Reader Attached?

Hey, Scripting Guy! How can I tell if a computer has a SmartCard reader attached?— TE Hey, TE. Um, we hate to be rude, TE, but we’re closed today; we only answer questions Monday through Friday. We’d be happy to help you out, but you’re going to have to come back on – what’s that?… Read more

Hey, Scripting Guy! How Can I Set the Date and Time on a Computer?

Hey, Scripting Guy! How can I set the date and time on a computer?— KM Hey, KM. Well, it’s true: today is the last day of TechEd IT Forum. That also means that, for the Scripting Guys, the party is over: tomorrow morning they hop on a plane and head back for home. And, needless… Read more

Hey, Scripting Guy! How Can I Create a Self-Updating Text Box in an HTA?

Hey, Scripting Guy! I have an HTA with three text boxes. In box 1 you enter a first name; in box 2 you enter a last name. I’d like box 3 to automatically update itself based on what you type in the other text boxes. For example, if you type Ken in box 1 then… Read more

Hey, Scripting Guy! How Can I Run a Script Any Time Office Outlook is Started?

Hey, Scripting Guy! How can I run a script any time Outlook is started?— AT Hey, AT. Today is Wednesday, and Wednesday is a busy day here at TechEd IT Forum. For one thing, this afternoon the Scripting Guys will be making a guest appearance at the TechNet Magazine booth. What will they be doing… Read more