Solved

Powershell help

Posted on 2016-09-28
3
47 Views
Last Modified: 2016-09-29
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
Comment
Question by:crp0499
  • 2
3 Comments
 
LVL 14

Accepted Solution

by:
Todd Nelson earned 250 total points
ID: 41820927
Give this a try...

Get-MessageTrackingLog | select sender,recipients,messagesubject,timestamp,connectorid | export-csv c:\log.csv -notype
1
 
LVL 13

Assisted Solution

by:Michael Machie
Michael Machie earned 250 total points
ID: 41820928
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
 
LVL 14

Expert Comment

by:Todd Nelson
ID: 41821961
Out-File doesn't output data in a CSV format (as requested) despite the filename extension given.
0

Featured Post

Do email signature updates give you a headache?

Do you feel like you are constantly making changes to email signatures? Are the images not formatting how you want them to? Want high-quality HTML signatures on all devices, including on mobiles and Macs? Then, let Exclaimer solve all your email signature problems today.

Join & Write a Comment

Marketers need statistics and metrics like everybody else needs oxygen. In this article we explain how to enable marketing campaign statistics for Microsoft Exchange mail.
This article explains in simple steps how to renew expiring Exchange Server Internal Transport Certificate.
In this video we show how to create a mailbox database in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Servers >> Data…
The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now