Hi Peter,

It could be NetBiosName that I am looking for. I tried it on my domain, but
it had no value. However that could be because my domain was not built pre
Windows 2000. I will try it on the offending domain and see what it returns.

Alan C

----- Original Message ----- 
From: "Peter Jessop" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Sunday, August 21, 2005 7:45 PM
Subject: Re: [ActiveDir] Getting the Pre Windows 2000 name for a domain


If I understand you correctly you are looking for the Pre Windows 2000
name of computers (not the domain).
The property name is sAMAccountName.

i.e in order to find the pre Windows 2000 names of object in the DDD
ou within domain BBB.CCC the script would be.

Set objContainer = GetObject("LDAP://ou=DDD,dc=BBB,dc=CCC")
For Each objcomputer In objContainer
WScript.Echo objComputer.Name & vbTab & objComputer.sAMAccountName
next

The pre Windows 2000 name of the domain has a property called nETBIOSName.
Regards

Peter Jessop
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