Solved

Detecting OS

Posted on 1998-12-12
5
196 Views
Last Modified: 2010-05-03
Hiya,

     Anybody know how I can detect if I'm running on Windows NT Workstation or Windows NT Server.  I can only detect if it's Windows NT or Windows 95/Windows 98.  When it's running on Windows NT, I can't detect if it's server or Workstation  and as well, when it's on Win 95, I can't detect if it's WIn95 or Win98.. I'm using the sysinfo control.

Thanks in advance.

       palim
0
Comment
Question by:palim
  • 2
  • 2
5 Comments
 
LVL 3

Expert Comment

by:groone
ID: 1449660
The only difference between NT workstation and NT server is the administration programs of NT Server so the easiest way to check would be for your program to maybe do a search of a specific admin program or dll that would not be in workstation but would be in server with a general setup and no pack added.  Maybe do a search for dhcpadmn.exe or user.exe.  I believe either of these would work for you.
0
 

Author Comment

by:palim
ID: 1449661
Are these software installable to the workstation if lets say I have remote admin installed on the workstation?  I'm looking for something that's maybe set in the registry or something that the O/S has registered, that I can get using an API call.
0
 
LVL 13

Expert Comment

by:Mirkwood
ID: 1449662
15 points means that this question is super, super easy.
Increase points to 100 and I will give you the answer.
0
 

Author Comment

by:palim
ID: 1449663
Well... it may be easy to some but not to others you see... :)  How 'bout 50?
0
 
LVL 13

Accepted Solution

by:
Mirkwood earned 10 total points
ID: 1449664
In order to distinguish between Windows NT Workstation and Windows NT Server, use the registry API to query the following:


   \HKEY_LOCAL_MACHINE\SYSTEM
   \CurrentControlSet
   \Control
   \ProductOptions

The result will be one of the following:

   WINNT      Windows NT Workstation is running.
   SERVERNT   Windows NT Server (3.5 or later) is running.
   LANMANNT   Windows NT Advanced Server (3.1) is running.

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now