Beta 42

Research and Development

Menu

PowerShell - Finding Built-In Cmdlets

In times where cmdlets can originate from all kinds of modules, it sometimes becomes important to find out which cmdlets are truly built into PowerShell and which represent external dependencies.

One way of getting a list of built-in cmdlets is to temporarily open another runspace and enumerate its internal cmdlet list:

$ps = [PowerShell]::Create()
$ps.Runspace.RunspaceConfiguration.Cmdlets
$ps.Dispose()