Have you ever wanted to get all the operating system properties of a computer? Well I am going to show you a short PowerShell script which can get loads of information about the operating system.
One of my colleagues was googling around for information about how to find the windows directory, number of users, last boot up time and many other properties of various computers. I told him that I had a short script which had that information and probably a whole lot more information which he might find useful.
$hostname = “parvinder-pc”
Get-WmiObject -class win32_operatingsystem -computer $hostname | select-object *


Originally published at https://parvtheitgeek.com on February 16, 2014.