CIM Methods are hard to discover
Votes from Connect: 11
Original Date Submitted: 6/29/2013 6:19:21 AM
Handle: Keith Hill MVP
Site Name: PowerShell
Feedback ID: 791819
Frequency: Always Happens
Regression: No, this is new to the most recent version
Folks are so conditioned to using Get-Member to discover properties and methods on types that it is a bit unnerving to not find methods on CIM instances with Get-Member. It is also unintuitive IMO to have to use this:
Get-CimClass Win32_Process | % CimClassMethods
... to find CIM methods when Get-Member will happily show CIM properties. It would be nice to have Get-Member recognize CIM instances and display CIM methods perhaps with a special notion (CimMethod) so we know that we have to use Invoke-CimMethod to invoke that particular method. Another option is to add a new Get-CimMember cmdlet that is the CIM oriented equivalent of Get-Member.
Product Studio item created by Connect Synchronizer due to creation of feedback ID 791819 (http://connect.microsoft.com/PowerShell/feedback/ViewFeedback.aspx?FeedbackID=791819).
Try to disover the CIM methods available on an instance of Win32_Process. We've been trained over the years to use Get-Member - no joy. Next we use Get-Command -CIM* and there is nothing in that list that looks like an "introspection" cmdlet.
Either have Get-Member show CIM methods (with special notation that it is a CIM Method) or add a new cmdlet - Get-CimMember - to use for CIM introspection.
Internal BugId: 4274