How to display all object properties in PowerShell
The default way to get the object properties is to use the Get-Member
cmdlet or it’s alias gm
.
Get-AdUser -Filter * | Get-Member
But in some cases, not all properties are displayed.
I’m using -properties *
parameter to get all parameters displayed.
Get-AdUser -Filter * -Properties *| Get-Member