Solved

Identifying Windows 2003 Server Standard and Enterprise

Posted on 2010-11-17
5
326 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

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

Mapping Drives using Group policy preferences Are you still using old scripts to map your network drives if so this article will show you how to get away for old scripts and move toward Group Policy Preference for mapping them. First things f…
Disabling the Directory Sync Service Account in Office 365 will stop directory synchronization from working.
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 configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …

929 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

11 Experts available now in Live!

Get 1:1 Help Now