Showing results for WMI - Scripting Blog [archived]

Apr 21, 2005
Post comments count0
Post likes count0

Why Does My Performance Monitoring Script Keep Returning the Same Incorrect Values?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! I’m using a script to monitor process performance, but every time I run the script the percent processor time for all the processes comes out as 0. What am I doing wrong?-- JL Hey, JL. We’ve simplified your script a bit to better illustrate the problem you’re running into. (And don’t feel bad: this is a very common problem pe...

Scripting Guy!scripting techniquesVBScript
Apr 8, 2005
Post comments count0
Post likes count0

How Can I Get a List of All the .PST Files on a Computer?

ScriptingGuy1
ScriptingGuy1

  Hey, Scripting Guy! How can I get a list of all the .pst files on a computer - along with their size and their location - and then save that information to a comma-separated values file?-- DC Hey, DC. If you hang around baseball fields long enough sooner or later you’ll hear someone use the expression “tailor-made.” Typically what they are...

Scripting Guy!scripting techniquesVBScript
Apr 7, 2005
Post comments count0
Post likes count0

How Can I Print a Test Page to a Printer?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I print a test page to a printer?-- RR Hey, RR. As long as you’re running Windows XP this is an easy one; that’s because the revised Win32_Printer class introduced in Windows XP includes a method called PrintTestPage. As you might expect, this means you can bind to a given printer on a computer and then call the Print...

Scripting Guy!VBScriptWMI
Apr 5, 2005
Post comments count0
Post likes count0

How Can I Delete a Folder and All Its Subfolders?

ScriptingGuy1
ScriptingGuy1

Hey Scripting Guy! How can I delete a folder and all its subfolders?-- FB Hey, FB. You know, a lot of people think the Scripting Guys know everything there is to know about scripting. Let’s put it this way: we wish. In fact, it’s only when we begin to think that we do know something about scripting that we get ourselves into trouble. Take (pleas...

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

How Can I Monitor for Different Types of Events With Just One Script?

ScriptingGuy1
ScriptingGuy1

  Hey, Scripting Guy! Is there any way to monitor a folder for file creations and deletions, all with just one script? -- HA Hey, HA. By the way, thanks for the question: you temporarily saved us from answering a different question, one that was proving a bit difficult thanks to some surprising differences between Windows XP Service Pack 1 a...

Scripting Guy!scripting techniquesVBScript