Skip to content

Instantly share code, notes, and snippets.

/.ps1

Created November 22, 2015 22:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/631df6ef0a6b36f62935 to your computer and use it in GitHub Desktop.
Save anonymous/631df6ef0a6b36f62935 to your computer and use it in GitHub Desktop.
$CurrentDate = Get-Date
$OneDayBack = $CurrentDate.AddDays(-1)
$Quarantine = Get-QuarantineMessage -StartReceivedDate $OneDayBack -EndReceivedDate $CurrentDate | select received*,sender*,subject
$Quarantine | Export-Csv C:\powershell\quar.csv -Append
$import = Import-Csv C:\powershell\quar.csv | ConvertTo-Html
$import | Out-String
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment