PowerShell: Determine Exposed WMI and CIM Class Methods

I sat through the Arizona PowerShell User Group meeting yesterday evening via a Lync online meeting. Don Jones was the guest speaker this month. His session was on generating reports from PowerShell. It was a super cool session and if you’re not taking advantage of user group meetings, you’re really missing out. Interface Technical Training was the sponsor for the user group meeting this month. I’m currently working my way through their PowerShell video training series which I’ve been very impressed with so far. A subscription is $25 a month for full access to all of their training videos which includes more than just PowerShell videos.

During last months Arizona PowerShell User Group meeting, Aleksandar Nikolić, a PowerShell MVP, posted a number of great tips in the chat during The Scripting Guy (Ed Wilson)’s presentation which was on managing Windows 8 remotely with PowerShell version 3 (An awesome session as well).

One of the code snippets that Aleksandar posted was how to determine what the exposed WMI and CIM class methods are. Here’s the code snippet which returns a list of the exposed methods for the Win32_Process class:

cim-methods1

Aleksandar also posted these other code snippets which are all very interesting:

wsman-ports1

wsman-service1

pssession-config1

µ

Leave a Reply

%d bloggers like this: