M365 Audit Scritps & System Reboot Checks

This commit is contained in:
2025-05-14 12:07:45 -04:00
parent 71764cd10f
commit 5b9825e6dc
7 changed files with 136 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
$SystemImage = Repair-WindowsImage -CheckHealth -Online
if ($SystemImage.ImageHealthState -ne "Healthy") {
exit 1
Write-Host $SystemImage.ImageHealthState
} elseif ($SystemImage.ImageHealthState -eq "Healthy") {
exit 0
Write-Host $SystemImage.ImageHealthState
}