Directory Cleanup & Addition of Platform Scripts
This commit is contained in:
1 parent
5b9825e6dc
commit
1be4de9e7b
26 files changed
+1595
-90
No files matched your search
@@ -0,0 +1,4 @@
|
||||
Repair-WindowsImage -RestoreHealth -Online -NoRestart -StartComponentCleanup
|
||||
|
||||
$SystemImage = Repair-WindowsImage -CheckHealth -Online -StartComponentCleanup
|
||||
Write-Host $SystemImage.ImageHealthState
|
||||
@@ -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
|
||||
}
|
||||
Reference in new issue
Block a user