Update 'usercount.ps'

This commit is contained in:
Marcel Stangenberger 2023-06-18 11:10:15 +00:00
parent 081dff7250
commit 28c7e72202

View File

@ -22,5 +22,5 @@ Function ADCOUNT
}
ADCOUNT | out-file c:\Windows\Temp\adcount.txt
$datum = (get-date -uformat "%B %Y")
send-MailMessage -To $mailto -Subject "AD Count output" -Body "Rapport created on $datum" -SmtpServer $mailserv -From $mailfrom -Attachment "c:\windows\temp\adcount.txt"
send-MailMessage -To "$mailto" -Subject "AD Count output" -Body "Rapport created on "$datum" -SmtpServer "$mailserv" -From "$mailfrom" -Attachment "c:\windows\temp\adcount.txt"
remove-item c:\windows\temp\adcount.txt