Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

2 Answers

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
add comment

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

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.