From 1c7fcdacdf457a0be77e8b2ed341f81e71397cd8 Mon Sep 17 00:00:00 2001 From: Corbin Date: Mon, 13 May 2024 12:30:44 -0400 Subject: [PATCH] Include debug information in email report --- ad/Disable-InactiveAdUser.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ad/Disable-InactiveAdUser.ps1 b/ad/Disable-InactiveAdUser.ps1 index 9e38bad..4c8e6dc 100644 --- a/ad/Disable-InactiveAdUser.ps1 +++ b/ad/Disable-InactiveAdUser.ps1 @@ -31,7 +31,8 @@ if (($Users.distinguishedName).Count -gt 0) {
-

This email was sent automatically. Please do not reply.

+

This email was sent automatically. Please do not reply.


+

$($UsersOU) $(Get-Date)

"@ Send-MailMessage -SmtpServer $SmtpServer -Port $SmtpPort -UseSsl -From $SmtpFrom -To $SmtpTo `