Showing results for September 2004 - Page 4 of 4 - Scripting Blog [archived]

Sep 9, 2004
0
0

How Can I Read in IP Addresses and Use Them in a Script?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! I have a text file that contains a bunch of IP addresses. I’d like to be able to read these addresses from a script, and then use them to connect to those computers. Is that possible?-- RL Hey, RL. You bet you can do this, and here’s how. First, make sure your text file looks something like this, with each IP address on a si...

Scripting Guy!scripting techniquesVBScript
Sep 8, 2004
0
0

How Can I Determine the Version Number of an Executable File?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I determine the version number of an executable file?-- TW Hey, TW. Well, that depends. If the file is located on the local computer, the easiest way is to use the FileSystemObject. Have a burning desire to know which version of Regedit.exe is installed on your computer? All it takes is two lines of code: As you can see...

Scripting Guy!VBScriptstorage
Sep 7, 2004
0
0

How Can I Tell if a Server has Rebooted?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! Is there any way to tell whether or not a server has rebooted?-- MvdM Hey, MvdM. We’re assuming that you’re performing a task and, at the end of the task, the computer is supposed to reboot. Needless to say, you want to know, “Well, did the server reboot?” How can you tell whether the machine restarted or not? The easiest way i...

Scripting Guy!VBScriptoperating system
Sep 3, 2004
0
0

How Can I Be Notified Any Time a Service Goes Down?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I be notified any time a service goes down?-- RN Hey, RN. As usual, there are a couple different ways you can do this, but perhaps the simplest approach is to create a script that monitors WMI events. We don’t have time to do a detailed explanation of WMI events in this column, but the basic idea is that you can ask WMI...

Scripting Guy!scripting techniquesVBScript
Sep 2, 2004
0
0

How Can I Enumerate All the Objects in an Active Directory OU?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I enumerate all the objects in an Active Directory OU?-- RB Hey, RB. By the way, thanks: it’s always nice to get an easy question every once in awhile! Enumerating all the objects in an OU is almost embarrassingly-simple: by default, any time you bind to an OU using ADSI you automatically get back a collection of all th...

Scripting Guy!VBScriptActive Directory