Showing archive results for 2004

Sep 27, 2004
Post comments count0
Post likes count0

How Can I Terminate a Process with a Specific PID?

Doctor Scripto

Hey, Scripting Guy! If I have the PID, is there a way to kill a process using a script?-- JV Hey, JV. You bet there is. For those of you who aren’t familiar with the acronym, PID is short for Process Identifier, a unique ID number assigned to a process when it gets created. (Well, temporarily unique: as soon as the process is destroyed, the nu...

Sep 24, 2004
Post comments count0
Post likes count0

How Can I Get a List of Exchange Servers Assigned to My Users?

ScriptingGuy1

Hey, Scripting Guy! How do I get a list of the Exchange servers (msExchHomeServerName) assigned to the users in an OU?-- BG Hey, BG. As you probably already figured out, you have two issues: you need to get a list of all the users in an OU, and then you need to figure out which Exchange server they’ve been assigned. Believe it or not, this is prob...

Scripting Guy!VBScriptActive Directory
Sep 23, 2004
Post comments count0
Post likes count0

How Can I Display Multiple Lines of Output in a Web Page?

ScriptingGuy1

Hey, Scripting Guy! How do I get multiple lines of output in a Web page using the Document.Body.InnerHTML property? I can only get one line of output on my page.-- CM Hey, CM. Sounds like you’re creating an instance of Internet Explorer and trying to display script output in it. And we’re willing to bet you’re using a script similar to this: In th...

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

How Can I Manage Scheduled Tasks Using Scripts?

ScriptingGuy1

Hey, Scripting Guy! Is there an easy way to manage scheduled tasks using scripts?-- RC Hey, RC. You just had to ask that question, didn’t you? To be honest, this is not one of scripting’s strong points, and you might be more confused after hearing the answer than you were before asking the question. But here goes. The problem we have here is that ...

Scripting Guy!VBScriptoperating system
Sep 21, 2004
Post comments count1
Post likes count0

How Can I Determine if a Computer is a Laptop or a Desktop Machine?

ScriptingGuy1

Hey, Scripting Guy! Is there any way to use WMI to determine whether a computer is a laptop or a desktop machine?-- CB Hey, CB. You bet there is, although if you didn’t know that we have no idea how you’d figure it out on your own. It turns out there’s a goofy little WMI class called Win32_SystemEnclosure, and the ChassisTypes property can tell yo...

Scripting Guy!VBScripthardware