ruusty
9/25/2016 - 2:11 PM

Get-os name

gwmi win32_operatingSystem | select caption

http://serverfault.com/questions/727163/is-it-possible-to-get-a-windows-version-from-a-powershell-command-on-windows-ser
Dism /Online /Get-Feature
Get-CimInstance Win32_OperatingSystem | Select-Object  Caption | ForEach{ $_.Caption }