Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to track down where exactly a cmdlet comes from in Powershell on Windows 8. How do I track this down? I know which Module and such it is, but this doesn't help me to track down the actual DLL it's code is implemented in. How do I track this down?

share|improve this question
up vote 2 down vote accepted

You can use the Get-Command cmdlet to return information about a specific cmdlet, then simply return its .DLL property.

For instance, for Get-ChildItem:

(Get-Command Get-ChildItem).DLL

The output would be something like:

C:\Windows\assembly\GAC_MSIL\Microsoft.PowerShell.Commands.Management\1.0.0.0__31bf3856ad364e35\Microsoft.PowerShell.Commands.Management.dll

share|improve this answer

For example if you wanted to know the DLL for Get-ChildItem:

(get-command get-childitem).dll
share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .