Search code examples
powershellpowershell-2.0powershell-3.0powershell-cmdlet

Is there any way to view the source for built-in powershell cmdlets?


I want to modify the code used in compare-object (so that I use the same algorithm for comparison, but modify output and possibly add some more to it). Is there any way to view the code that is used for this, or would I just have to guess? This could be useful incase I want to modify other cmdlets in the future.


Solution

  • You need to use an application like dotpeek to reflect the code of

    Microsoft.PowerShell.Commands.Utility.dll
    

    enter image description here