Show Windows operating system and hardware information
Build a paste-ready command, then review its compatibility and effects before running it.
Get-ComputerInfo | Select-Object WindowsProductName,WindowsVersion,OsArchitecture,CsTotalPhysicalMemoryread-onlyno known side effects Compatibility
WindowsVerified for Windows using powershell syntax.
Operational knowledgereview due 2027-01-19
RequirementsGet-ComputerInfoGet-ComputerInfo must be installed and available on PATH.
Version supportGet-ComputerInfo Current supported releasesVerified for windows using powershell syntax; consult compatibility notes for platform-specific differences.
Expected signalsWindowsProductName : Windows 11 ProRepresentative successful output; values vary with the selected target and system state.
Known errorsGet-ComputerInfo: command not foundGet-ComputerInfo is missing or is not available on PATH.
VerifyGet-ComputerInfo | Select-Object WindowsProductName,WindowsVersion,OsArchitecture,CsTotalPhysicalMemoryThe 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-ComputerInfoCommandRuns the Get-ComputerInfo stage of this one-liner.
02|PipelinePasses the output on the left to the command on the right.
03Select-ObjectCommandRuns the Select-Object stage of this one-liner.
04WindowsProductName,WindowsVersion,OsArchitecture,CsTotalPhysicalMemoryArgumentPasses WindowsProductName,WindowsVersion,OsArchitecture,CsTotalPhysicalMemory to Select-Object.
Example input
Get-ComputerInfo | Select-Object WindowsProductName,WindowsVersion,OsArchitecture,CsTotalPhysicalMemory
Example output
WindowsProductName : Windows 11 Pro
WindowsVersion : 24H2
OsArchitecture : 64-bit
CsTotalPhysicalMemory : 34277203968
Illustrative output — exact values vary by system and data.
Official sources