Get-ComputerInfo
Gets a consolidated object of system and operating system properties.
Syntax
Default (Default)
Get-ComputerInfo
[[-Property] <String[]>]
[<CommonParameters>]
Description
The Get-ComputerInfo cmdlet gets a consolidated object of system and operating system properties.
This cmdlet was introduced in Windows PowerShell 5.1.
Examples
Example 1: Get all computer properties
Get-ComputerInfo
This command gets all system and operating system properties from the computer.
Example 2: Get all computer operating system properties
Get-ComputerInfo -Property "os*"
This command gets all operating system properties from the computer.
Parameters
-Property
Specifies, as a string array, the computer properties in which this cmdlet displays.
Parameter properties
| Type: | String[] |
| Default value: | None |
| Supports wildcards: | True |
| DontShow: | False |
Parameter sets
(All)
| Position: | 0 |
| Mandatory: | False |
| Value from pipeline: | True |
| Value from pipeline by property name: | True |
| Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Inputs
String
Outputs
Microsoft.PowerShell.Management.ComputerInfo
Notes
This cmdlet is only available on Windows platforms.