Get-ComputerInfo | Taking on PowerShell one cmdlet at a time | Weekly Blog

Share this post:

This is a part of an on-going blog series written by Adam Gordon. Each week, Adam will walk you through a PowerShell command, showing you when and how to use each one. This week, Adam covers Get-ComputerInfo.

When to use Get-ComputerInfo?

The Get-ComputerInfo cmdlet gets a consolidated object of system and operating system properties.

This cmdlet was introduced in Windows PowerShell 5.1.

What version of PowerShell am I using for this blog?

Get the PowerShell Version from your machine:

$PSVersionTable

This command shows you the PowerShell version information on your machine.

 

How to use Get-ComputerInfo?

Get all computer properties: 

Get-ComputerInfo

Get-ComputerInfo gets all system and operating system properties from the computer.

Get all computer operating system properties:

Get-ComputerInfo -Property “os*”

This command gets all operating system properties from the computer.

Learn last week’s command: Get-Content.

Need PowerShell training? Check out ITProTV’s PowerShell online IT training courses.

Leave a Reply

Your email address will not be published. Required fields are marked *