-
-
Save anonymous/631df6ef0a6b36f62935 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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