I can view my windows os type using the following command
PS C:\> (Get-WmiObject Win32_OperatingSystem).caption
Microsoft Windows Server 2008 R2 Enterprise
Is there a way to get only the OS release like 2008 R2 value using powershell?
Thanks!
I can view my windows os type using the following command
PS C:\> (Get-WmiObject Win32_OperatingSystem).caption
Microsoft Windows Server 2008 R2 Enterprise
Is there a way to get only the OS release like 2008 R2 value using powershell?
Thanks!