Scripting Blog [archived]

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

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 ...