
April 19th, 2000, 09:11 AM
|
|
Contributing User
|
|
Join Date: Dec 2002
Posts: 14,575
  
Time spent in forums: < 1 sec
Reputation Power: 22
|
|
|
For those who knows about ADSI and NT4
<i><b>Originally posted by : Pampierral</b></i><br />hello; i'm a student and i do a stage in a big company.<br /><br />I have to ask the NT directory of the wole company (there are over than 7000 objects...).<br /><br />With the folowing code, it takes me 5 minutes to find the name when i've got the fullname of a user...<br />and that's specialy what i want to do : to find the name (ie the login) from the fullname (ie Steve Jhonson for example)<br /><br /><br />Thanx to help me.... if u understand what i ask... i'm french and it's dificult to speack a good<br />englih with these technical words...<br /><br />here's my code :<br /><br />nomcherche="LOUSTAU PIERRE"<br /><br />set usr=GetObject("WinNT://ELF",user)<br /><br />for each item in usr<br /> if item.fullname=nomcherche then<br /> msgbox item.Name<br /> end if<br />next<br /><br />
|