Showing archive results for 2004

Sep 13, 2004
Post comments count0
Post likes count0

Why Doesn't My LIKE Query Work on Windows 2000?

ScriptingGuy1

Hey, Scripting Guy! I’m trying to use a LIKE query in my WMI scripts. The query works fine on Windows XP computers, but I can’t get it work on Windows 2000 computers. Do you know what I’m doing wrong?-- GS Hey, GS. Actually you’re not doing anything wrong. You’re using a script similar to this, which uses the LIKE operator to search for all the fi...

Scripting Guy!scripting techniquesVBScript
Sep 10, 2004
Post comments count0
Post likes count0

How Can I Tell Which Account a Service is Running Under?

ScriptingGuy1

We have services that run under a particular user account. Each time we change the password for that user account, we need to change the password for any services that run under that account as well. But how can we tell which account a service is running under?-- SA Hey, SA. By and large WMI is a pretty transparent technology. To manage services, ...

Scripting Guy!scripting techniquesVBScript
Sep 9, 2004
Post comments count0
Post likes count0

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

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
Post comments count0
Post likes count0

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

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
Post comments count0
Post likes count0

How Can I Tell if a Server has Rebooted?

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