Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Identifying Windows 2003 Server Standard and Enterprise

Posted on 2010-11-17
5
Medium Priority
?
333 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 27

Accepted Solution

by:
KenMcF earned 2000 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

Here's a look at newsworthy articles and community happenings during the last month.
Active Directory can easily get cluttered with unused service, user and computer accounts. In this article, I will show you the way I like to implement ADCleanup..
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…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…
Suggested Courses

721 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