I am using some cmdlets imported from a module and would like to find out where the DLLs are physically located so that I can use dotPeek or Reflector on them. Is there a way to find out the DLL path somehow?
The accepted answer will work for cmdlets but not native functions such as Add-BgpRouter
or Add-PrinterDriver
. To determine the file path of a function use
$Function = Get-Command Add-BgpRouter
(Get-Module $Function.ModuleName).Path
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With