OS Detection without WMI

Started by john8oy

OS Detection without WMI   04 March 2016, 22:35

Hi Andrew,
Apologies if this has been asked before, because this quirk has been around for a while.
When Netscan returns the built-in method for OS version, it reports "Seven/Windows 2008 R2" or "Windows 8.1/Server 2012 R2" for example. I can add an extra WMI query "SELECT Caption FROM Win32_OperatingSystem" but this is an extra overhead. Is it possibe that the built-in method could be more specific?

Cheers as always,
John
SoftPerfect Support forum - Andrew avatar image

Re: OS Detection without WMI   04 March 2016, 22:44

Not really.

We use the NetWkstaGetInfo call, which returns a structure called WKSTA_INFO_100.

This structure contains the major and minor version of the OS, for example 6.1, which can be a number of OSs built on the same kernel. As you can see here Windows NT 6.1 can be Windows 7 or Windows Server 2008 R2 or Windows Home Server 2011.

Re: OS Detection without WMI   04 March 2016, 22:53

Ok, no worries. I guess it's a Microsoft quirk. I'll stick to the WMI for Windows specific hosts.

Cheers cool

Sometimes you can get the answer faster if you try the forum search and/or have a look at the software user manual to see if your question has already been answered.

Our forum rules are simple:

  • Be polite.
  • Do not spam.
  • If possible, check your spelling and grammar.

Author:

Email:

Subject

A brief and informative title for your message, approximately 4–8 words:

     

Spam prevention: please enter the following code in the input field below.

 **      **   ******    ******    **     **  **     ** 
 **  **  **  **    **  **    **   **     **  **     ** 
 **  **  **  **        **         **     **  **     ** 
 **  **  **  **        **   ****  *********  **     ** 
 **  **  **  **        **    **   **     **  **     ** 
 **  **  **  **    **  **    **   **     **  **     ** 
  ***  ***    ******    ******    **     **   *******  

Message: