Monday, 13 October 2014

PowerShell: How do I know what methods a commandlet has?

There is nothing more frustrating than trying to find out what methods are exposed in a commandlet that you are using. Fortunately, there is a commandlet to expose commandlets:


So, if I wanted to know what properties / methods are exposed in Get-SPOSite, I would execute the following:

Get-SPOSite | Get-Member

No comments:

Post a comment