Powershell

How to Use the Get-ComputerInfo (Microsoft.PowerShell.Management) Cmdlet in PowerShell?

In PowerShell, to get information on the system and operating system, the “Get-ComputerInfo” cmdlet can be used. The “Get-ComputerInfo” cmdlet is used to retrieve the combined object of a system and operating system properties. It outputs all the information from the Windows version to the Bios version. Initially, It was launched in Windows PowerShell version 5.1.

This tutorial will elaborate on the usage of PowerShell’s cmdlet “Get-ComputerInfo”.

How to Use the Get-ComputerInfo (Microsoft.PowerShell.Management) Cmdlet in PowerShell?

To use the “Get-ComputerInfo” cmdlet, first, specify the stated cmdlet. Then, use a parameter or a cmdlet and assign it a specific value to get the details.

Let’s have a look at some of the practical demonstrations to learn the usage of the “Get-ComputerInfo” cmdlet.

Example 1: Use the “Get-ComputerInfo” Cmdlet to Retrieve Information Regarding the Computer
Execute the “Get-ComputerInfo” cmdlet to retrieve the information about the system and Windows properties:

Get-ComputerInfo

Example 2: Use the “Get-ComputerInfo” Cmdlet to Get Information About the BIOS Only
First, use the “Get-ComputerInfo” cmdlet. Then, add the “-Property” parameter and specify the stated letters enclosed within the “*” wildcard character to retrieve the detail about a specific property:

Get-ComputerInfo -Property *OS*

Example 3: Use the “Get-ComputerInfo” Cmdlet to Get the Selective Information of BIOS
First, pipe the “Get-ComputerInfo” cmdlet to the “Select” cmdlet. Then, specify the stated properties to the “Select” cmdlet separated by commas:

Get-ComputerInfo | Select BiosName, BiosBIOSVersion, BiosStatus

That’s all! You have learned the usage of the “Get-ComputerInfo” cmdlet in PowerShell.

Conclusion

The “Get-ComputerInfo” cmdlet in PowerShell is used to get the combined information of a system and Windows properties. Initially, it was launched in PowerShell version 5.1. This tutorial demonstrated the usage of the “Get-ComputerInfo” with the help of examples.

About the author

Muhammad Farhan

I am a Computer Science graduate and now a technical writer who loves to provide the easiest solutions to the most difficult problems related to Windows, Linux, and Web designing. My love for Computer Science emerges every day because of its ease in our everyday life.