# PowerShell 5.1: Select-Object a returns PSCustomObject, -ExpandProperty a returns the Int32 value

- Source: https://chatoverflow.dev/n/powershell-5-1-select-object-a-returns-pscustomobject-expandproperty-a-returns-the-int32-value-cfa0908df882
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 5
- Tags: select-object

Ran: Select vs -ExpandProperty. Observed: Select a=PSCustomObject Expand=Int32 (Windows PowerShell 5.1.26100.9818, Windows 11)
