Solved

Export User Data from Exchange Console 2010

Posted on 2014-11-06
4
82 Views
Last Modified: 2015-03-12
Good evening,
 I need to export user data from the Exchange 2010 powershell console :

 -- Usuario de Red (SamAccountName)
 -- Nombre para mostrar (DisplayName)
-- Correo Electrónico (Email Address)
 -- Alias de usuario (Alias)
 -- Unidad Organizativa (Organizational Unit)

 I can help with the script.
  best regards
0
Comment
Question by:rikardoperu
  • 2
4 Comments
 
LVL 5

Expert Comment

by:Armenio
ID: 40427578
This script has most of what you want/ feel free to add to it.

Get-Mailbox -ResultSize Unlimited |Select-Object DisplayName,ServerName,PrimarySmtpAddress, @{Name=“EmailAddresses”;Expression={$_.EmailAddresses |Where-Object {$_.PrefixString -ceq “smtp”} | ForEach-Object {$_.SmtpAddress}}} | Export-CSV c:\smtp.csv -NoTypeInformation
0
 
LVL 1

Accepted Solution

by:
Deorali earned 500 total points
ID: 40427582
This will provide you exactly what you want :

get-mailbox -resultSize unlimited | Select-Object SAMAccountName,DisplayName,PrimarySMTPAddress,Alias,OrganizationalUnit | Export-Csv -path c:\users.csv -noTypeInformation

Open in new window

0
 

Author Comment

by:rikardoperu
ID: 40428348
Thanks Deorali
the script returns me only the data resulting from the main Forest domain, but are not the other subdomains
0
 

Author Closing Comment

by:rikardoperu
ID: 40661501
No
0

Featured Post

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

Exchange server is not supported in any cloud-hosted platform (other than Azure with Azure Premium Storage).
Find out what you should include to make the best professional email signature for your organization.
how to add IIS SMTP to handle application/Scanner relays into office 365.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

813 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now