header1   header
header
header Register : : Login header
header
connector   connector
menuleft menuright
submenu   submenu
left
Problems with Export-CSV
Last Post 10 Feb 2010 01:37 PM by arptro. 0 Replies.
Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
arptroUser is Offline
New Member
New Member
Posts:13
Avatar

--
10 Feb 2010 01:37 PM
    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
    You are not authorized to post a reply.


    Active Forums 4.3
    right
    footer   footer
    footer Sponsored by Quest Software • SAPIEN Technologies • Compellent • Microsoft Windows Server 2008 R2 footer
    footer   footer