Get-Member
Use Get-Member to list an object's properties and methods — the fastest way to discover what pipeline output can do.
Documentation: Microsoft Learn — Get-Member
Syntax
See the command anatomy
Inspect this authored example with fictional data in the bounded browser model. The numbered stages show how its objects change.
Get-Process | Get-Member- Stage 1Get-Process
Positional values or no named parameters - Stage 2Get-Member
Positional values or no named parameters
Try it
PowerShell example · browser support is limited.
Execution scope: The full example below requires PowerShell outside this browser. You can edit this runner to use the supported practice commands; unsupported syntax returns an explanation.
Follow the objects
Run the command to inspect each stage.
Examples
List all with Get-Process
Show reference output
Illustrative output · values vary by environment
Name MemberType ------------ ---------- CPU Property Id Property Name Property ProcessName Property WorkingSet Property WorkingSet64 Property WS Property
Get-Service -MemberType Property
Show reference output
Illustrative output · values vary by environment
TypeName: System.ServiceProcess.ServiceController
Name MemberType Definition
---- ---------- ----------
Equals Method bool Equals(System.Object obj)
ToString Method string ToString()
Name Property string Name {get;}
Status Property object Status {get;}Get-Date -Static
Show reference output
Illustrative output · values vary by environment
TypeName: System.DateTime
Name MemberType Definition
---- ---------- ----------
Equals Method bool Equals(System.Object obj)
ToString Method string ToString()
Name Property string Name {get;}
Status Property object Status {get;}Parameters
Parameter definitions:
-Name-InputObject-MemberType-View-Static
Practical use and troubleshooting
Practical scenario: Use Get-Member when you need to list an object's properties and methods — the fastest way to discover what pipeline output can do. Start with one identified target and inspect the returned values before extending the operation to a list. Keep the identity in your report so you can trace each result back to the object or path that produced it.
Common error and fix: Inspecting a wrapper array instead of its elements gives unexpected members. Pipe representative objects to Get-Member and confirm the input type before selecting a property. In an unattended script, capture this failure with its original error record and record which target failed. An empty result and an unsuccessful query must remain distinguishable in the final report.
See also: Get-Command. Get-Member inspects an object's members; Get-Command discovers commands. Command syntax and an output object's properties answer different questions when building a pipeline. Read the linked command before substituting it; similar names do not imply identical inputs or output.
Put this command to work
Discover service properties
Use Get-Member to list the available service properties.
The sandbox is visible now. Sign in with Google only when you run or check a task; commands and temporary files are discarded when you leave.
Run a command to inspect its result.
Inspect starting data
Supported syntax
Virtual files
Recap
Get-Member Use Get-Member to list an object's properties and methods — the fastest way to discover what pipeline output can do.
Next: Get-Alias