There were several instances where I had to find details of the operating system using PowerShell. Here, I am providing several PowerShell snippets that return various details of the Operating System.
Name of the Operating System
Is Operating System 32-bit or 64-bit
Name of the Machine
There are many more properties of the Operating System that are exposed. To obtain more details, run the following
Get-WmiObject Win32_OperatingSystem | Get-Member