Sunday, January 3, 2010

Get module Info for a Function in Powershell v2.0

This one liner will return the the module info in a easy to consume format. The info includes the full path to the module that the function is defined in. Good Time and Get-Command!!!

Get-Command -CommandType Function -Name Control-FPService | Select-Object -ExpandProperty Module | Format-List