This article can help you to get the details of your operating system with PowerShell. Here we go.

Step 1. Open PowerShell with elevated privileges.

Step 2. To check operating system name.

(Get-WMIObject win32_operatingsystem).name

Step 3. To check if the operating system is 32-bit or 64-bit.

(Get-WmiObject Win32_OperatingSystem).OSArchitecture

Step 4. To check machine name.

(Get-WmiObject Win32_OperatingSystem).CSName

Get Operating System Details with PowerShell

I have run the following commands on PowerShell version 5.1

How to Get Operating System Details with PowerShell

Leave a Reply

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

*