Microsoft KB Archive/245129

{|
 * width="100%"|

How to Determine the Microsoft Windows NT Product Type

 * }

ID: Q245129

-

The information in this article applies to:


 * Microsoft Windows NT Server version 4.0
 * Microsoft Windows NT Workstation version 4.0
 * Microsoft Windows 2000 Server
 * Microsoft Windows 2000 Professional

-

SUMMARY
This article describes how to determine which type of Microsoft Windows NT installation you are currently running on your computer by using Regedt32 or a batch file. The Windows NT installation types include Server, Workstation, and Domain Controller (DC).

MORE INFORMATION
To find out which product is currently running, you need to determine the value of the following registry entry:

"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ProductOptions" Use the following table to determine which product is running:

ProductType  Product

WINNT        Windows NT Workstation is running SERVERNT     Windows NT Server is running LANMANNT     Windows NT Advanced Server is running (Server as Domain              controller) To determine which type of Windows NT installation you are running using a batch file, follow these steps:

NOTE: You must have the Reg.exe tool installed on your computer for these steps to work. The Reg.exe tool is included with the Windows NT 4.0 Resource Kit.


 * 1) Copy the following batch file into Microsoft Word for Windows or a word-processing program that inserts the proper ASCII characters for the TAB key.
 * 2) Save the batch file as a text-only file.
 * 3) In Windows NT Explorer, locate the folder in which you saved the text file, and then change the extension of the file from .txt to .bat.
 * 4) To run the batch file at the Command Prompt, type the full path to the location of the file (including the file name), and then press ENTER.

You can also write a program by using the C++ programming language to determine the type of Windows NT installation you are running on your computer. For a sample of such a program, please see the following article in the Microsoft Knowledge Base:

"Q124305 Which Windows NT (Server or Workstation) Is Running?" Additional query words:

Keywords :

Version : WINDOWS:2000; winnt:4.0

Platform : WINDOWS winnt

Issue type : kbinfo

Technology : kbvcSearch