Solved

Pull User info from Exchange Server or Active Directory

Posted on 2014-09-04
7
292 Views
Last Modified: 2014-09-04
How can I export the following info from Exchange 2010 into excel
First Name
Last Name
Business Phone
Fax Nbr
Mobile Phone
Email addiress

for every active user?
0
Comment
Question by:snyperj
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
7 Comments
 
LVL 9

Expert Comment

by:MHMAdmins
ID: 40304464
Personally I use PowerGUI which is a free download and it will allow you to choose what to export. http://www.quest.com/powergui-freeware/
0
 
LVL 3

Expert Comment

by:Brandon
ID: 40304466
You need to use powershell from Exchange. here are some commands that dump all kinds of info, you can sort and delete what you do/don't need.

Get-ADObject -filter 'objectclass -eq "user"' -properties * | select | export-csv -NoTypeInformation "c:\ADUsers.csv"

It saves a csv file to the C drive called ADUSERS.csv.
0
 

Author Comment

by:snyperj
ID: 40304497
The term 'Get-ADObject' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:13
+ Get-ADObject <<<<  -filter 'objectclass -eq "user"' -properties * | select | export-csv -NoTypeInformation "c:\ADUser
s.csv"
    + CategoryInfo          : ObjectNotFound: (Get-ADObject:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
0
NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

 
LVL 3

Expert Comment

by:Brandon
ID: 40304634
Close the PowerShell window, right click it and open as Admin.

Does that work?
0
 
LVL 3

Accepted Solution

by:
Brandon earned 500 total points
ID: 40304645
You also need to have the AD module active.
Check to see if it is by running this command.
get-module activedirectory -listavailable

If it's not present here is a link to install it.

http://blogs.technet.com/b/heyscriptingguy/archive/2011/08/30/install-active-directory-management-service-for-easy-powershell-access.aspx
0
 

Author Closing Comment

by:snyperj
ID: 40304653
thanks
0
 
LVL 3

Expert Comment

by:Brandon
ID: 40304667
No problem. Just had to do this a few weeks ago for a client.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In-place Upgrading Dirsync to Azure AD Connect
This article describes my battle tested process for setting up delegation. I use this process anywhere that I need to setup delegation. In the article I will show how it applies to Active Directory
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question