Solved

Identifying Windows 2003 Server Standard and Enterprise

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

Office 365 Training for IT Pros

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

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

Suggested Solutions

In this article, I am going to show you how to simulate a multi-site Lab environment on a single Hyper-V host. I use this method successfully in my own lab to simulate three fully routed global AD Sites on a Windows 10 Hyper-V host.
A hard and fast method for reducing Active Directory Administrators members.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

710 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