Use this when working with PowerShell's object pipeline.
Objects · PowerShell Automation
PowerShell passes .NET objects, not text, between commands, so properties can be selected, filtered and sorted directly, such as Get-Process | Where-Object CPU -gt 100.
1. PowerShell passes objects, not text.
2. Inspect with Get-Member.
3. Select/Where/Sort on properties.
4. [PSCustomObject] for output.
5. -Depth for JSON.
cmdlet → .NET objects → properties
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification path Verify boundary
Pipe representative values to Get-Member, inspect .GetType().FullName for local objects, and use Select-Object to make required properties explicit. For remote output, inspect PSTypeNames and verify whether the object is deserialized. Validate downstream behavior using actual properties rather than comparing rendered strings.
Step 2 Common mistakes Narrow the fault
- Parsing text output instead of using objects.
Step 3 Where it fails Narrow the fault
An object snapshot can become stale immediately after retrieval. A method call on a live object is not equivalent to changing an authoritative service through its supported API, and a deserialized remote object cannot be assumed to retain behavior. Keep object identity, serialization state, presentation and authoritative target state separate.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- PowerShell passes .NET objects, not text.
- Filter with Where-Object and select with Select-Object.
- Get-Member shows properties and methods.
Get-Service | Get-Member— object properties/methodsGet-Process | Select-Object Name,CPU -First 5— select properties$obj | ConvertTo-Json -Depth 5— serialise
ReferenceWhy it matters1 section · depth on demand
In depth
In PowerShell, everything in the pipeline is an object with properties and methods, not text. This is why you can sort by a property or select fields without parsing output, and why formatting should happen only at the end.
$svc = Get-Service Spooler
$svc.Status # property
$svc | Get-Member # list properties and methods
Get-Service | Sort-Object Status | Select-Object -First 5 Name, Status
[PSCustomObject]@{ Host = 'sw01'; Vlans = 12 } # create your own object
| Rule | Reason |
|---|---|
| Filter left, format right | Format-Table output is no longer useful objects |
Export with Export-Csv/ConvertTo-Json | Keeps structure |
Use Select-Object -ExpandProperty | Get raw values instead of objects |
ReferenceImportant terms & boundaries2 sections · depth on demand
Known-good, transitional and broken reference
Objects — comparative operational reference for PowerShell Automation → Objects. What it does not show: request acceptance or job success does not show target change, effective state or workload recovery Next check: move one step toward the original workload using Inspect $Error/exception/exit semantics and the returned object, then query the target independently and verify the service/application outcome rather than treating command completion as evidence. Platform/scope: PowerShell 5.1/7+, module versions and remoting endpoint behavior vary by host/platform.
PowerShell mechanics
PowerShell moves .NET/PSObject instances rather than line-oriented text between native PowerShell commands. Each object has a type identity plus properties and methods, and Extended Type System adapters can add or reshape members. Formatting data is separate from the underlying object, and remoting commonly serializes live objects into deserialized property bags that no longer expose the original live methods.
ReferenceConfiguration & state1 section · depth on demand
Authoring and lifecycle
Design automation contracts around stable properties and explicit types where appropriate, not around the current console table. Select only required properties at API/storage boundaries and serialize deliberately when crossing JSON, CSV or remoting boundaries. If a script depends on adapted or extended members, document the PowerShell/module version that provides them.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Configuration & expected output
Concrete examples are shown only when the stored reference contains an actual configuration or output shape for this Topic.
Configuration example
Assumptions: Review target identity, permissions and environment before mutation.
$item = Get-Process | Select-Object -First 1
$item | Select-Object Id,ProcessNameVerification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Microsoft Learn documentation reviewed for bounded PowerShell reference claims. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_objects?view=powershell-7.5 · confidence 94%Quick lookup tables
Objects · PowerShell operational reference
Topic-specific PowerShell runtime identity, persistence, verification, output and failure-boundary lookup.
| Boundary | Objects reference |
|---|---|
| Runtime identity | PowerShell edition/version + command/module source |
| Persistent intent | Script/module/config prerequisites under source control |
| Verification | Read-only discovery → execution evidence → independent target read-back |
| Output contract | Structured objects/streams before formatting |
| Failure boundary | Separate engine/binding from transport/API/native and target-state failures |
Deep reference
Healthy vs suspicious evidence
Output interpretation
Default formatting can hide properties, truncate values or choose views based on type data. Format-Table and Format-List create formatting objects intended for presentation, so feeding them into export or logic changes the data contract. When a property is absent after remoting or serialization, distinguish transport representation loss from a target-side state problem.