PDA

View Full Version : Differentiate Winserver2012 and Win 8.1



msurenda
09-15-2014, 07:21 AM
I am trying to identify whether OS is , Windows 8.1 or Windows server 2012 R2.

SYSINFO.WINNT.bWin81 returns TRUE for both the OS, how do we identify?
Appreciate any responses...

THanks.

DLee65
09-15-2014, 07:40 AM
You want to also look for SYSINFO.nOSProductType and verify if it is VER_NT_WORKSTATION. If it is then it is Windows 8.1. If it is any other value it is Windows Server 20102.

msurenda
09-16-2014, 12:38 AM
That worked...Thanku DLee