You can't get any further info from AD, you need to ask the machine.
Probably best bet is reg query of

Key: HKLM\SYSTEM\CurrentControlSet\Control\ProductOptions

Value: ProductType 
        Winnt         Workstation 
        Servernt      Server 
        Lanmannt      Server Domain Controller 



 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Monday, August 22, 2005 8:04 PM
To: ActiveDir@mail.activedir.org
Subject: [ActiveDir] Differentiating between NT4 Workstation and Server in
AD?

Hi guys,

Just thinking of a better way to search for NT4 workstations within AD.

Filter below will return both ws and server
"&(objectclass=computer) (objectcategory=computer) (operatingsystem=Windows
NT)"

The hard way would be to integrate this with something like srvinfo to grep
the Product Info, but those remote systems will eat up time :-(

Anything else I can use to query them? WMI components may not be installed
on the NT4 workstations so WMIC/Systeminfo and stuff may not be usable..

So far 3rd party non relevant utilities such as Quest Domain Migration
Wizard is able to list separate out WS and SRV when I'm importing the files,
but the above criteria will be used in scripts unfortunately...

Ideas pls..


Thank you and have a splendid day!
 
Kind Regards,
 
Freddy Hartono
Windows Administrator (ADSM/NT Security) Spherion Technology Group,
Singapore For Agilent Technologies
E-mail: [EMAIL PROTECTED]
 

List info   : http://www.activedir.org/List.aspx
List FAQ    : http://www.activedir.org/ListFAQ.aspx
List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/

List info   : http://www.activedir.org/List.aspx
List FAQ    : http://www.activedir.org/ListFAQ.aspx
List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/

Reply via email to