Scripting Blog [archived]

Formerly known as the "Hey, Scripting Guy!" blog

Hey, Scripting Guy! How Can I Get WMI Information About More Than One Computer?

(image) I want to tell you that I love your articles. I have learned more about tea in the last three months than I ever thought was possible. In fact, if truth be told, I never thought about tea that much. I do like the can of tea from the vending machine, if that counts. Sometimes I drink that instead of soda pop, when I want to get the ...

Hey, Scripting Guy! How Do I Migrate My VBScript WMI Queries to Windows PowerShell?

(image) We are pretty well annoyed at you guys. We spent all this time and energy creating all these VBScripts over the last nine years. We have several hundred VBScripts that we use in production, and with uncertain economic times, you are now telling me I have to rewrite all these scripts in Windows PowerShell? Most of these scripts use ...

Hey, Scripting Guy! How Do I Find the Names of WMI Classes?

(image) I was looking through some of the scripts in the Script Repository that use WMI, and they seem to make sense. In fact, they seem annoyingly repetitive. That is not my question. My question is how in the heck do you know which WMI class to use, or which properties are available in the WMI classes. I mean, that is the killer problem, ...

Hey, Scripting Guy! How Can I Use WMI with Windows PowerShell?

(image) I have been looking at Windows PowerShell, and think it would be cool to use. We use WMI a lot at work, and I am wondering if I can gather the same kinds of information using Windows PowerShell that we use VBScript for? Is Windows PowerShell designed to do this?- DB(image) (image) Hi DB, It is rather early in the morning down here ...

Hey, Scripting Guy! How Can I Tell How Much Free Disk Space a User Has?

(image) I know most people have heard of Moore’s Law that is named after Gordon Moore, but have you ever heard of Bob’s law? Bob was the senior network administrator when I first became an IT pro, and he created what he called Bob's Law. Briefly stated it says this: "A user's demand for storage space will always expand to meet the ...