DiD you know : You can find the class that implements a particular cmdlet

POSH TIP: Get .Net Class Name that implements a particular cmdlet

Use the Get-Command cmdlet along with the name of the target cmdlet for getting the implementing class like below..

(Get-Command -name Get-Process).ImplementingType.Name

Put the get-command along with name parameter within parenthesis and then use the ‘Name’ property of ‘ImplementingType’ property

The ImplementingType property returns the runtimeType object that actually contains the name of class implementing the cmdlet.

The output looks like below..GetProcessCommand is the class implementing the Get-Process cmdlet



Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s