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:
Get-Member
So, if I wanted to know what properties / methods are exposed in Get-SPOSite, I would execute the following:
Get-SPOSite | Get-Member
Get-Member
So, if I wanted to know what properties / methods are exposed in Get-SPOSite, I would execute the following:
Get-SPOSite | Get-Member
Comments
Post a Comment