X

How to Get Operating System Details with PowerShell on Windows

This article shows you how to get the details of your operating system with PowerShell. These commands will work on any recent Windows Desktop or Server system. It shows how to get the operating system name, the OS Architecture, and the machine name. Here we go.

Step 1. Open PowerShell with elevated privileges.

Step 2. To check the 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

I have run the following commands on PowerShell version 5.1

Categories: PowerShell Windows
Karim Buzdar: About the Author: Karim Buzdar holds a degree in telecommunication engineering and holds several sysadmin certifications. As an IT engineer and technical author, he writes for various websites.
X

Headline

You can control the ways in which we improve and personalize your experience. Please choose whether you wish to allow the following:

Privacy Settings