Using Powershell To Get Windows Edition

Powershell: (Get-WmiObject -class Win32_OperatingSystem).Caption

Results in output like: Microsoft Windows Server 2016 Datacenter

Thanks to: Stackoverflow User Richard

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.