Powershell Script to get the Operating System Infomrmation

You can use the Win32_OperatingSystem class to get the Operating system info.

$hostname = "Enter Computer Name"
Get-WmiObject -class win32_operatingsystem -computer $hostname | select-object *

PS

Comments

Thanks for the comment, will get back to you soon… Jugal Shah