Hey, Scripting Guy! Can I change the Internet Explorer home page by using a script?– AH Hey, AH. It’s Monday morning, and after a hard weekend of sitting around watching football, we decided to take it easy this morning. Yes, you can change the Internet Explorer home page by using a script; all you have…
Year: 2004
How Can I Work with a CN that Has a Comma in It?
Hey, Scripting Guy! My user accounts have commas in their CN attributes; for example, Myer, Ken. How do I bind to those user accounts using a script? I always get the error message “An invalid dn syntax has been specified.” — GT Hey, GT. For those of you who don’t know, the CN attribute is…
How Can I Delete All Files Older Than a Specified Date?
Hey, Scripting Guy! I’d like to have a script that can search my computer for all files older than a certain date, and then automatically delete those files. Can I do that?– GM Hey, GM. Can you write a script that will search for and delete all the old files on your computer? You bet….
How Can I Play a Sound From Within a Script?
Hey, Scripting Guy! I have a script that pops up a message box to alert users to a problem. Is there any way I can play a sound at the same time the message box appears?– TL Hey, TL. You guys do this on purpose, don’t you; you love to ask questions where there isn’t…
How Can I Delete the Files in the Temporary Internet Files Folder?
Hey, Scripting Guy! Is there a way to delete all the files in the Temporary Internet Files folder using a script?– KR Hey, AK. You know, prompted by your question one of the Scripting Guys (who shall remain nameless) thought to himself, “Hmmm, I wonder what’s in my Temporary Internet Files folder?” Upon checking, he…
How Can I Make Selections from a Form When Using a Script?
Hey, Scripting Guy! I’d like to have a form with four radio buttons on it, each button representing a different computer. You choose a radio button, click another button, and then a script runs against the computer you selected. How do I do that?– CW Hey, CW. If we’re talking strictly VBScript and Windows Script…
How Can I Tell Whether a Value Exists in the Registry?
Hey, Scripting Guy! How can I tell whether a value exists in the registry on a remote computer?– AL Hey, AL. Full disclosure time: even though we go by the name The Scripting Guys, we don’t claim to know everything there is to know about scripting. This question is a good example of that. When…
How Can I Create a CSV File?
Hey, Scripting Guy! How can I create a CSV file?– LF Hey, LF. For those of you who aren’t up on your acronyms, CSV is short for comma-separated-values file, a text file in which individual elements are separated by commas. For example, say you have a CSV file consisting of user first names, last names,…
How Can I Change the Screensaver Timeout Value?
Hey, Scripting Guy! Can I use a script to change the timeout value for the screensaver on a computer?– JN Hey, JN. For some reason, Microsoft’s scripting technologies come up a little short any time you’re talking about Windows settings and components, things like screensavers, wallpaper, the Taskbar, the Start menu, etc. You can use…
Hey, Scripting Guy! Can I Retrieve Just Failure Events from the Security Event Log?
Hey, Scripting Guy! Is there a way to retrieve just Failure Audit events from the Security event log?– KA Hey, KA. Interesting, isn’t it: any time the subject is failure, people turn to the Scripting Guys. What makes you think we know anything about failure? Ok, you’re right: silly question. As far as your question…