Link to home
Start Free TrialLog in
Avatar of Christian Hans
Christian HansFlag for United States of America

asked on

Office 365 | Get-Content | Get-MsolUser | Get-Mailbox | Export to CSV help

Is there a way to combine the Get-Mailbox and Get-MSolUser output AND using a list of UPNs listed in the Get-Content text file command combined then export  to a CSV?

Something like:

Get-Content C:\temp\NewUsers.txt

Get-MsolUser | Get-Mailbox | Select-Object UserPrincipalName,DisplayName,IsLicensed,Licenses,Office,UsageLocation,ProxyAddresses,EmailAddresses,PrimarySmtpAddress,IsMailboxEnabled,Languages,Office,SKUAssigned,MaxSendSize,MaxReceiveSize | Export-CSV c:\temp\NewUserReport.csv

Thanks in advance.

This is for Exchange Online/Office 365...
Avatar of Vasil Michev (MVP)
Vasil Michev (MVP)
Flag of Bulgaria image

Link to home
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial