Link to home
Start Free TrialLog in
Avatar of BLarry9
BLarry9

asked on

powershell output csv format

Hi guys

I can use
Get-Mailbox -resultsize unlimited | ForEach {Get-ActiveSyncDeviceStatistics -Mailbox:$_.Identity} | ft identity, lastsuccesssync, Devicetype
to get them in powershell. or output it to a csv file.

but the format is not what i want. the csv only has one column.

does any one know a way to output the result into a csv file with three columns?

thanks a lot.

SYH
Avatar of Will Szymkowski
Will Szymkowski
Flag of Canada image

Yes all you need to do is the following...

Get-Mailbox -resultsize unlimited | ForEach {Get-ActiveSyncDeviceStatistics -Mailbox:$_.Identity} | select identity, lastsuccesssync, DeviceType | out-file c:\filename.csv

Open in new window


Will.
Avatar of BLarry9
BLarry9

ASKER

nope, still in one column.
ASKER CERTIFIED SOLUTION
Avatar of footech
footech
Flag of United States of America image

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

ASKER

super. thanks.