Hi, The powershell command below outputs to the screen properly but becomes garbled when I use export-csv on the command (see example at end). Any help would be appreciated.
Get-AgentLog -StartDate "2/03/2010" -EndDate "2/10/2010" | where {$_.recipients -like "rst@my.org" -and $_.reasondata -gt "7"} |select-object recipients,timestamp,P1fromaddress,p2fromaddresses,reasondata| export-csv c:\admin\rh.csv TYPE System.Management.Automation.PSCustomObject Recipients,Timestamp,P1FromAddress,P2FromAddresses,ReasonData System.Collections.Generic.List`1[Microsoft.Exchange.Management.AgentLog.AgentLogEntry+RoutingAddressWrapper],"2/3/2010 8:58:38 AM",news@newsy.com,System.Collections.Generic.List`1[Microsoft.Exchange.Management.AgentLog.AgentLogEntry+RoutingAddressWrapper],8 |