Scripting Blog [archived]

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

Create Custom Type Data in PowerShell to Format WMI Display

Summary: Microsoft Scripting Guy, Ed Wilson, talks about creating custom type data to control the way a WMI class displays. (image)  Hey, Scripting Guy! Yesterday, you said you could create custom type data to control the way the Win32_Volume WMI class reports back. How would one go about doing that? I looked on the Internet, and to be ...

Comparing CIM and WMI in PowerShell

Summary: Microsoft Scripting Guy, Ed Wilson, talks about comparing CIM and Windows PowerShell. (image)  Hey, Scripting Guy! When I query using a CIM function, I get back different stuff than when I query WMI. I don’t get it. Can you help? —BW (image)  Hello BW, Microsoft Scripting Guy, Ed Wilson, is here. Yesterday in ...

Working with Volumes in CIM

Summary: Microsoft Scripting Guy, Ed Wilson, talks about working with volumes with Windows PowerShell and CIM. (image)  Hey, Scripting Guy! I don’t understand CIM at all. I mean, I thought it was basically WMI, but when I use WMI to look at volumes, I see different stuff. Can you help me? —AB (image)  Hello AB, Microsoft ...

Registry Cmdlets: Complete the Registry CDXML Module

Summary: Richard Siddaway shows how to complete the registry CDXML module. Honorary Scripting Guy, Richard Siddaway, here today filling in for my good friend, The Scripting Guy. This is the final post in a series. To catch up, read: So far, you’ve seen how to create a CDXML module with a single cmdlet based on the GetStringValue...