How to get Microsoft Windows system info using Powershell

There are many times that I have to get the system information like Windows Edition, Version, Architecture etc, in order to create support case or post to a forum.

Since I use Powershell for almost everything, I have a script with the following commands to get that info:

Windows Edition
(Get-WmiObject -class Win32_OperatingSystem).Caption

Windows Version
(Get-WmiObject -class Win32_OperatingSystem).Version

Processor Info
(Get-WmiObject -Class Win32_OperatingSystem).OSArchitecture

I'm using WMI cause I want to be able to get the above info from remote systems as well.

If you want more information about a system take a look at the Win32_OperatingSystem class here.

If you want to act based on the above info, it may be better to use some environmental variables and get the exact values.

Popular posts from this blog

Syslog Message Collection for OMS from sources that do not support the agent

Generating Alerts On OMS

How to Configure Message Forwarding on a Mailbox Level