cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
msurenda
Level 3

Differentiate Winserver2012 and Win 8.1

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.
Labels (1)
0 Kudos
(2) Replies
DLee65
Level 13

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.
0 Kudos
msurenda
Level 3

That worked...Thanku DLee
0 Kudos