Pcornel
Browse topics
Options
Recent
Favorites
Automation · Technical reference

Objects · PowerShell Automation

Direct answer

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.

When to use this

Use this when working with PowerShell's object pipeline.

First 30 seconds

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.

Operational verification

cmdlet → .NET objects → properties

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
PowerShell 7.5/current
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformPowerShell 7.5/current · Automation implementations are tool and platform specific. Use the adjacent Domain for the technology being automated and this Domain for automation behavior.
Scope / prerequisiteUse this when working with PowerShell's object pipeline.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

3 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 references

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.

observation · 1
Key points
  • PowerShell passes .NET objects, not text.
  • Filter with Where-Object and select with Select-Object.
  • Get-Member shows properties and methods.
Key checks
  • Get-Service | Get-Member — object properties/methods
  • Get-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
RuleReason
Filter left, format rightFormat-Table output is no longer useful objects
Export with Export-Csv/ConvertTo-JsonKeeps structure
Use Select-Object -ExpandPropertyGet 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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
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
Technical examples

Configuration & expected output

Concrete examples are shown only when the stored reference contains an actual configuration or output shape for this Topic.

Configuration example

PowerShell 7.5/current 7.5/currentMinimal authored PowerShell pattern for Objects

Assumptions: Review target identity, permissions and environment before mutation.

$item = Get-Process | Select-Object -First 1
$item | Select-Object Id,ProcessName
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docPowerShell 7.5/current 7.5/current

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%
Embedded reference data

Quick lookup tables

Objects · PowerShell operational reference

Topic-specific PowerShell runtime identity, persistence, verification, output and failure-boundary lookup.

BoundaryObjects reference
Runtime identityPowerShell edition/version + command/module source
Persistent intentScript/module/config prerequisites under source control
VerificationRead-only discovery → execution evidence → independent target read-back
Output contractStructured objects/streams before formatting
Failure boundarySeparate engine/binding from transport/API/native and target-state failures
Depth when you need it

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.

Confirmation

Confirm action

Continue?