list all contact users in Active directory and address book

Hi All ,

IS any way I can export all the contact in Address book or all the active contact in Active directory

I prefer to user power shell please

Thanks
RabihhajIT HelpDeskAsked:
Who is Participating?
 
Marwan OsmanCommented:
to get the name and phone and email run:

Get-ADObject -Filter 'objectClass -eq "contact"' -Properties *|select name,telephoneNumber,mail|Export-csv  Contacts.csv -NoTypeInformation

but you should run before: import-module ActiveDirectory

and check the below link you will find all user attributes in active directory and the related parameter name to add it to the command if you need

http://www.kouti.com/tables/userattributes.htm
0
 
Marwan OsmanCommented:
Get-ADObject -Filter 'objectClass -eq "contact"' -Properties *|select name,@{e={"$($_.memberof)"};l="Member Of"}|Export-csv  Contacts.csv -NoTypeInformation
1
 
Marwan OsmanCommented:
get-contact -resultsize unlimited | select-object name,Phone,company | export-csv contacts.csv
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
Marwan OsmanCommented:
get-qadobject -type contact | select Name, PrimarySMTPAddress | export-csv contacts.csv
0
 
RabihhajIT HelpDeskAuthor Commented:
is this will save the outcome on excel file , please advise
0
 
Marwan OsmanCommented:
yes, each command i sent you will see at the end : export-csv
0
 
RabihhajIT HelpDeskAuthor Commented:
are all has a different outcome
what that one does ?
will slow the network performance if I run this script

please advise
Get-ADObject -Filter 'objectClass -eq "contact"' -Properties *|select name,@{e={"$($_.memberof)"};l="Member Of"}|Export-csv  Contacts.csv -NoTypeInformation
0
 
Marwan OsmanCommented:
this one will export the contacts in active directory and you will find in the file the name and the memberships
0
 
Marwan OsmanCommented:
it will not slow the network, it is a normal and sample script and I use to run such script during the working hours
0
 
RabihhajIT HelpDeskAuthor Commented:
Hi Mar , I ran those scripts and the last one gave me The term 'get-qadobject' is not recognized as the name of a cmdlet,

is any way I can get list of email, full name company and phone number in one report

thanks
Rabih
0
 
Marwan OsmanCommented:
Before you run the command, you must run : import-module ActiveDirectory then run the command again and inform me
0
 
RabihhajIT HelpDeskAuthor Commented:
I've requested that this question be closed as follows:

Accepted answer: 0 points for Rabihhaj's comment #a40766065
Assisted answer: 100 points for Mar1 O's comment #a40765961
Assisted answer: 100 points for Mar1 O's comment #a40765963
Assisted answer: 300 points for Mar1 O's comment #a40768153

for the following reason:

Excellent answers
0
 
Marwan OsmanCommented:
If it is excellent answers why you want to cancel it?
0
 
RabihhajIT HelpDeskAuthor Commented:
How do I fix it now, by accident hit on cancelled.
0
 
Marwan OsmanCommented:
please solve that issues:

Mar1 O2015-05-13 at 09:24:39ID: 40774126
If it is excellent answers why you want to cancel it?

Rabihhaj2015-05-13 at 09:35:34ID: 40774140
How do I fix it now, by accident hit on cancelled.
0
 
Marwan OsmanCommented:
administrators will fix it, thank You Rabih
0
 
Marwan OsmanCommented:
eenookami,

he said that he get the correct answer and it is solved, why you want him to re-close the question?
0
 
Marwan OsmanCommented:
how you considered your comment  ((Accepted answer: 0 points for Rabihhaj's comment #a40766065))) as the answer?
0
 
RabihhajIT HelpDeskAuthor Commented:
Guys, I am knew to this site, and not sure how to accept solutions.  

Bottom line I need to give full mark to Mar 1 how can I do that?
0
 
Marwan OsmanCommented:
on the right side of my comment, click "Accept as solution" then it will redirect you to a page, choose "A" for excellent, or B or C, then click submit
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.