Scripting Blog [archived]

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

Query Multiple WMI Classes but Return One Object with PowerShell

Summary: Microsoft Scripting Guy, Ed Wilson, shows how to query multiple WMI classes with Windows PowerShell and return a single object. (image)  Hey, Scripting Guy! I have this script that I have been working on for a while. It queries three different WMI classes. The first two classes are no problem because they only return a single ...