I am wanting to run a one liner in PowerShell by combining these two commands... how can I have them both run and export to a CSV output?
Get-Mailbox -ResultSize Unlimited | select Database,LitigationHoldEnabled,IsMailboxEnabled,ResetPasswordOnNextLogon,SamAccountName,ServerName,Office,UserPrincipalName,WhenMailboxCreated,Alias,DisplayName,HiddenFromAddressListsEnabled,PrimarySmtpAddress,RecipientTypeDetails,OrganizationalUnit
Get-MailboxStatistics | Select DisplayName,LastLogonTime,ServerName,DatabaseName
| Export-CSV c:\report.csv -notrypeinformation
Thanks in advance