bsharath
asked on
Need to get the description of all the nt logins or email id's in the list
Hi,
I need to get the Description of all the Nt logins or email id's in the txt file.
From the ads
regards
Sharath
I need to get the Description of all the Nt logins or email id's in the txt file.
From the ads
regards
Sharath
ASKER
zoofan.
I may have the emailid or Nt login in the txt file.It should query any of this and get the description of these users...
I may have the emailid or Nt login in the txt file.It should query any of this and get the description of these users...
What about just querying the entire directory and creating a master list of all users returning,
loginname,description,emai laddress
to a csv file?
zf
loginname,description,emai
to a csv file?
zf
and acutally you can add any other attributes you want into the spreadsheet as well.
zf
zf
ASKER
I have this method but want to just find data which i have as i dout that these details are not correct...
As in the description in the ads i have the Employee id's of the user.This would help me find the data in there
As in the description in the ads i have the Employee id's of the user.This would help me find the data in there
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Farhan.This works great for email id's but not for NT logins....
Can you please post what you have inside UserIDs.txt file.
ASKER
I have this
Bramha.Reddy@plc.com
Kumaresan.Vaiyapuri@.com
sharathr
venuk
Bramha.Reddy@plc.com
Kumaresan.Vaiyapuri@.com
sharathr
venuk
Apply following commands and post results.
DSQuery * DomainRoot -Filter "(&(objectCategory=Person) (objectCla ss=User)(s AMAccountN ame=sharat hr*))" -Attr description -L
DSQuery * -Filter "(&(objectCategory=Person) (objectCla ss=User)(s AMAccountN ame=venuk* ))" -Attr description -L
DSQuery * DomainRoot -Filter "(&(objectCategory=Person)
DSQuery * -Filter "(&(objectCategory=Person)
ASKER
C:\>DSQuery * DomainRoot -Filter "(&(objectCategory=Person) (objectCla ss=User)(s A
MAccountName=sharathr*))" -Attr description -L
12879
C:\>DSQuery * -Filter "(&(objectCategory=Person) (objectCla ss=User)(s AMAccountN am
e=venugopalk*))" -Attr description -L
23133
MAccountName=sharathr*))" -Attr description -L
12879
C:\>DSQuery * -Filter "(&(objectCategory=Person)
e=venugopalk*))" -Attr description -L
23133
Above script should work perfectly please check UserIDs.txt for correct user ID's. Enter following data into notepad and save it UserIDs.txt name. While saving this file make sure you have selected 'ANSI' encoding scheme.
venugopalk
Bramha.Reddy@plc.com
Kumaresan.Vaiyapuri@plc.co m
venugopalk
Bramha.Reddy@plc.com
Kumaresan.Vaiyapuri@plc.co
ASKER
Sorry farhan.
I dont know what's going wrong with my machines.Some times it works and some times give error.Henceforth i shall make sure i shall check in many machines and post the results to you.
Thanks
I dont know what's going wrong with my machines.Some times it works and some times give error.Henceforth i shall make sure i shall check in many machines and post the results to you.
Thanks
What is the service pack level of these machines? are these machines fully updated? What Antivirus program is installed on them?
ASKER
OS is windows 2003 with Sp2 and Scanner is Sophos antivirus
zf