Finding All Object Properties

by Jul 17, 2012

By default, PowerShell only displays a limited set of object properties. To view all available properties, add the following pipeline element:

PS> Get-WmiObject Win32_BIOS
PS> Get-WmiObject Win32_BIOS | Select-Object * -First 1

The Select-Object statement selects all available columns and returns only the first element—just in case the initial command returned more than one object. Since you only need one sample object to investigate the available properties, this is a good idea to not get overwhelmed with redundant data.

To check out the formal data types and also methods present in objects, pipe the result to Get-Member instead:

PS> Get-WmiObject Win32_BIOS | Get-Member

Twitter This Tip! ReTweet this Tip!