Include debug information in email report

This commit is contained in:
Corbin 2024-05-13 12:30:44 -04:00
parent 5d74bd4e21
commit 1c7fcdacdf

View File

@ -31,7 +31,8 @@ if (($Users.distinguishedName).Count -gt 0) {
<ul>
$($Users | % { "<li>$($_.DisplayName) &lt;$($_.userPrincipalName)&gt;, not logged in since $($_.lastLogon)</li>" })
</ul><br/>
<p>This email was sent automatically. Please do not reply.</p>
<p>This email was sent automatically. Please do not reply.</p><br/>
<p><pre>$($UsersOU) $(Get-Date)</pre></p>
"@
Send-MailMessage -SmtpServer $SmtpServer -Port $SmtpPort -UseSsl -From $SmtpFrom -To $SmtpTo `