Solved

Identifying Windows 2003 Server Standard and Enterprise

Posted on 2010-11-17
5
328 Views
Last Modified: 2012-05-10
Hi guys,
Im trying to identify all machines that have Windows 2003 Server Standard and Windows 2003 Server Enterprise.
When using dsquery, i have tried the attributes:
operatingSystemVersion
which returns 5.2 (3790) (for both Standard and Enterprise)
and
operatingSystem
which returns Windows Server 2003 (for both again)
Is there an attribute that will clearly identify the 2 different versions?
Thanks guys.
0
Comment
Question by:Simon336697
  • 3
  • 2
5 Comments
 
LVL 27

Accepted Solution

by:
KenMcF earned 500 total points
ID: 34160790
You can get this pretty easy with powershell and wmi

gwmi -computer COMPUTERNAME -class Win32_Operatingsystem | ft Name, ProductType, Caption

The caption should give you enterprise and also the producttype should be 4

http://msdn.microsoft.com/en-us/library/aa394239%28VS.85%29.aspx


and if you have the quest AD cmdlets you could loop through them

$servers = @()
$comps = get-qadcomputer -searchbase "OU=Servers,DC=Domain,DC=Local"
Foreach($comp in $comps){
$OS = gwmi -computer COMPUTERNAME -class Win32_Operatingsystem
$servers += $($OS.Name),$($OS.ProductType),$($OS.Caption)"
}
$out | out-file c:\servers.txt


0
 
LVL 1

Author Comment

by:Simon336697
ID: 34160852
Hi KenMcF,

The command:

gwmi -computer COMPUTERNAME -class Win32_Operatingsystem | ft Name, ProductType, Caption

Is this a downloadable utility?
0
 
LVL 27

Expert Comment

by:KenMcF
ID: 34160890
That is included in powershell

get-wmiobject

http://support.microsoft.com/kb/968929
0
 
LVL 1

Author Comment

by:Simon336697
ID: 34200099
Thanks KenMcF.
0
 
LVL 27

Expert Comment

by:KenMcF
ID: 34200121
Glad it worked for you.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

This article outlines the process to identify and resolve account lockout in an Active Directory environment.
This article describes my battle tested process for setting up delegation. I use this process anywhere that I need to setup delegation. In the article I will show how it applies to Active Directory
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…

860 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