Include debug information in email report
This commit is contained in:
parent
5d74bd4e21
commit
1c7fcdacdf
@ -31,7 +31,8 @@ if (($Users.distinguishedName).Count -gt 0) {
|
||||
<ul>
|
||||
$($Users | % { "<li>$($_.DisplayName) <$($_.userPrincipalName)>, 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 `
|
||||
|
Loading…
x
Reference in New Issue
Block a user