Showing archive results for March 2005

Mar 9, 2005
Post comments count0
Post likes count0

How Can I Determine Which Version of Internet Explorer is Installed on a Computer?

ScriptingGuy1

Hey, Scripting Guy! How can I determine which version of Internet Explorer is installed on a computer?-- MG Hey, MG. Probably the best (and definitely the easiest) way to do this is to use WMI; after all, using WMI makes it as easy to get this information from remote computers as it is to get it from the local machine. Here’s a sample script tha...

Scripting Guy!VBScriptWMI
Mar 8, 2005
Post comments count0
Post likes count0

How Can I Get a List of All the Domains in a Forest?

ScriptingGuy1

Hey, Scripting Guy! How can I get a list of all the domains in a forest?-- NS Hey, NS. Any time you want information about Active Directory your best bet is to go right to the source: simply ask Active Directory to provide you with this information. Here’s a sample script that binds to the global catalog for the domain Fabrikam.com and searches ...

Scripting Guy!VBScriptActive Directory
Mar 7, 2005
Post comments count0
Post likes count0

How Can I Tell If a File Exists on a CD or DVD Drive?

ScriptingGuy1

Hey, Scripting Guy! How can I tell whether a file exists on any CD or DVD drive connected to a computer?-- GH Hey, GH. Well, one way to do this would be to search the entire file system - including any mapped network drives - and check to see if a file (let’s call it Budget.xls) can be found anywhere. Assuming you find such a file, you can then ...

Scripting Guy!VBScriptstorage
Mar 4, 2005
Post comments count0
Post likes count0

How Can I Delete a Single Registry Value?

ScriptingGuy1

Hey, Scripting Guy! How can I delete a single registry value? I don’t want to delete the entire registry key, just one value.-- BF Hey, BF. Registry terminology can be a bit confusing, thanks in large part to those of us here at Microsoft (we tend to use a different set of terms when we talk about the registry than the rest of the world does). S...

Scripting Guy!VBScriptoperating system
Mar 3, 2005
Post comments count0
Post likes count0

How Can I Determine the Elapsed Time Between Two Dates?

ScriptingGuy1

Hey, Scripting Guy! How can I tell how many days there are between two dates? For example, if I have a log file that says an application started on January 1, 2005 and that the application ended today, is there a way to determine how many days the application ran?-- AL Hey, AL. You know, in the second Hey, Scripting Guy! column ever written ("Ho...

Scripting Guy!scripting techniquesVBScript