[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 80
  • Last Modified:

Powershell help

Get-MessageTrackingLog | fl sender,recipients,messagesubject,timestamp,connectorid

I need that powershell piped out to a cvs file.  Can someone assist me in adding the missing syntax please?

Thank you

Cliff
0
crp0499
Asked:
crp0499
  • 2
2 Solutions
 
Todd NelsonSystems EngineerCommented:
Give this a try...

Get-MessageTrackingLog | select sender,recipients,messagesubject,timestamp,connectorid | export-csv c:\log.csv -notype
1
 
Michael MachieFull-time technical multi-taskerCommented:
out-file [path][filename].[extension]

EX:
Get-MessageTrackingLog | fl sender,recipients,messagesubject,timestamp,connectorid | Out-file c:\reports\date.csv

See link for much more info
http://ss64.com/ps/out-file.html
0
 
Todd NelsonSystems EngineerCommented:
Out-File doesn't output data in a CSV format (as requested) despite the filename extension given.
0

Featured Post

A Cyber Security RX to Protect Your Organization

Join us on December 13th for a webinar to learn how medical providers can defend against malware with a cyber security "Rx" that supports a healthy technology adoption plan for every healthcare organization.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now