Solved

Identifying Windows 2003 Server Standard and Enterprise

Posted on 2010-11-17
5
324 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
Comment Utility
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
Comment Utility
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
Comment Utility
That is included in powershell

get-wmiobject

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

Author Comment

by:Simon336697
Comment Utility
Thanks KenMcF.
0
 
LVL 27

Expert Comment

by:KenMcF
Comment Utility
Glad it worked for you.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

In this article, we will see the basic design consideration while designing a Multi-tenant web application in a simple manner. Though, many frameworks are available in the market to develop a multi - tenant application, but do they provide data, cod…
Disabling the Directory Sync Service Account in Office 365 will stop directory synchronization from working.
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
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…

743 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

17 Experts available now in Live!

Get 1:1 Help Now