Always log an entry even when no changes are made
This commit is contained in:
@@ -106,6 +106,11 @@ foreach ($entry in $Deduped.Values) {
|
|||||||
# --- Summary ---
|
# --- Summary ---
|
||||||
Write-Log ""
|
Write-Log ""
|
||||||
Write-Log " --- Summary ---"
|
Write-Log " --- Summary ---"
|
||||||
|
|
||||||
|
if ($emailUpdates -eq 0 -and $disables -eq 0) {
|
||||||
|
Write-Log " No changes were made on this run." "Cyan"
|
||||||
|
}
|
||||||
|
|
||||||
Write-Log " Email updates : $emailUpdates"
|
Write-Log " Email updates : $emailUpdates"
|
||||||
Write-Log " Accounts disabled : $disables"
|
Write-Log " Accounts disabled : $disables"
|
||||||
Write-Log " No changes needed : $noChanges"
|
Write-Log " No changes needed : $noChanges"
|
||||||
|
|||||||
Reference in New Issue
Block a user