Export User Data from Exchange Console 2010

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
Ricardo SalazarAdministratorAsked:
Who is Participating?
 
DeoraliConnect With a Mentor Commented:
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
 
ArmenioCommented:
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
 
Ricardo SalazarAdministratorAuthor Commented:
Thanks Deorali
the script returns me only the data resulting from the main Forest domain, but are not the other subdomains
0
 
Ricardo SalazarAdministratorAuthor Commented:
No
0
All Courses

From novice to tech pro — start learning today.