PowerShell: Determine Exposed WMI and CIM Class Methods

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

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:

(get-cimclass win32_process).CimClassMethods

cim-methods1.png

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

dir wsman:\localhost\service\defaultports

wsman-ports1.png

dir wsman:\localhost\service

wsman-service1.png

get-pssessionconfiguration microsoft.powershell | fl *

pssession-config1.png

µ