combine two commands in one output exchange powershell
$30-5000 USD
Cancelled
Posted almost 12 years ago
$30-5000 USD
Paid on delivery
Hello all,
I have been trying to accomplish this for about three days now. I am sure this can be done, but i just can't figure it out.
I would like all the fields from both of the below exchange management shell commands to be combined in the same csv file.
Get-Mailbox -ResultSize Unlimited | Where{$[login to view URL] -eq '[login to view URL]'} | Get-CasMailbox -ResultSize Unlimited | export-csv "c:\[login to view URL]"
right now when this is run, I only get the fields that get-casMailbox would export. For example: ActiveSyncEnabled, HasActiveSyncDevicePartnership, OWAEnabled
I would also like fields from Get-Mailbox such as Database, ForwardingAddress, etc to be included in the csv file.