Show Windows operating system health fields
Build a paste-ready command, then review its compatibility and effects before running it.
Get-CimInstance Win32_OperatingSystem | Select-Object Caption,Version,LastBootUpTime,FreePhysicalMemoryread-onlyno known side effects Compatibility
WindowsVerified for Windows using powershell syntax.
Operational knowledgereview due 2027-01-20
RequirementsGet-CimInstanceGet-CimInstance must be installed and available on PATH.
Version supportGet-CimInstance Current supported releasesVerified for windows using powershell syntax; consult compatibility notes for platform-specific differences.
Expected signalsCaption Version LastBootUpTime FreePhysicalMemoryRepresentative successful output; values vary with the selected target and system state.
Known errorsGet-CimInstance: command not foundGet-CimInstance is missing or is not available on PATH.
VerifyGet-CimInstance Win32_OperatingSystem | Select-Object Caption,Version,LastBootUpTime,FreePhysicalMemoryThe output matches the expected target and exits without an error.Rollback noteNot required: this command is read-only and does not change system state.
Command breakdown
01Get-CimInstanceCommandRuns the Get-CimInstance stage of this one-liner.
02Win32_OperatingSystemArgumentPasses Win32_OperatingSystem to Get-CimInstance.
03|PipelinePasses the output on the left to the command on the right.
04Select-ObjectCommandRuns the Select-Object stage of this one-liner.
05Caption,Version,LastBootUpTime,FreePhysicalMemoryArgumentPasses Caption,Version,LastBootUpTime,FreePhysicalMemory to Select-Object.
Example input
Get-CimInstance Win32_OperatingSystem | Select-Object Caption,Version,LastBootUpTime,FreePhysicalMemory
Example output
Caption Version LastBootUpTime FreePhysicalMemory
------- ------- -------------- ------------------
Windows Server 2025 10.0.26100 7/23/2026 8:02:31 AM 8421120
Illustrative output — exact values vary by system and data.
Official sources