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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
Marwan OsmanCommented:
get-qadobject -type contact | select Name, PrimarySMTPAddress | export-csv contacts.csv
0
Simplify Active Directory Administration

Administration of Active Directory does not have to be hard.  Too often what should be a simple task is made more difficult than it needs to be.The solution?  Hyena from SystemTools Software.  With ease-of-use as well as powerful importing and bulk updating capabilities.

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Active Directory

From novice to tech pro — start learning today.