Location: List Archives

List Archives

This forum is an archive of all posts to our mailing list over the past few years.  The forum is set read only therefore to contribute you will need to join our list community.  See more info about this here.

 

When subscribed to the list you should use your standard email client to send your posts to ActiveDir@mail.activedir.org.

List Archives

Subject: Re: [ActiveDir] Getting the Pre Windows 2000 name for a domain
Prev Next
You are not authorized to post a reply.

AuthorMessages
AD00000777User is Offline

Posts:0

08/22/2005 11:25 AM  
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"
To:
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/
You are not authorized to post a reply.
Forums >ActiveDir Mail List Archive >List Archives > Re: [ActiveDir] Getting the Pre Windows 2000 name for a domain



ActiveForums 3.7
AdventNet Banner
Friends

Friends

Namescape
Members

Members

MembershipMembership:
Latest New UserLatest:kosciesza69
New TodayNew Today:3
New YesterdayNew Yesterday:1
User CountOverall:4319

People OnlinePeople Online:
VisitorsVisitors:77
MembersMembers:0
TotalTotal:77

Online NowOnline Now:

Ads

Copyright 2008 ActiveDir.org
Terms Of Use