1781309393

This commit is contained in:
2026-06-12 18:09:53 -06:00
parent 2b1dba5abe
commit 96b5747ad9
+3 -3
View File
@@ -19,7 +19,7 @@ Write-Host "Clearing DNS"
ipconfig /flushsdns | Out-Null
Write-Host "Clearing ARP Cache"
Start-Process -FilePath "Remove-NetNeighbor" -Verb RunAs -ArgumentList "-Confirm:$false" | Out-Null
Remove-NetNeighbor -Confirm:$false | Out-Null
Write-Host "Renewing DHCP"
ipconfig /releasen | Out-Null
@@ -32,10 +32,10 @@ Start-Process -FilePath "MRT.exe" -Verb RunAs -Wait # pause until mrt is done
Write-Host "RUNNING DISM ONLINE IMAGE CLEANUP"
Start-Process -FilePath "DISM.exe" -Verb RunAs -ArgumentList "/Online /Cleanup-Image /RestoreHealth" -Wait # powershell checks image and replaces bad filesm waits to fimish
Write-Host "LAUNCHING SYSTEM FILE CHECKER (sfc)"
Write-Host "LAUNCHING SYSTEM FILE CHECKER (SFC)"
Start-Process "SFC.exe" -Verb RunAs -ArgumentList "/scannow" -Wait # cmd system file checker, retreives and replaces bad system files and waits fir it to finish
Write-Host "SCHEDULING OFFLINE CHECK DISK AND REPAIR OF C: (chkdsk)"
Write-Host "SCHEDULING OFFLINE CHECK DISK AND REPAIR OF C: (CHKDSK)"
Start-Process "cmd.exe" -Verb RunAs -ArgumentList "-c 'echo y | chkdsk /f /r C:'" # cmd checks C drive after reboot to waste time and fix errors (noninteractive)
Write-Host "SCHEDULING WINDOWS DEFENDER OFFLINE SCAN MAY REBOOT UNEXPECTEDL"