testan weindows fizz

This commit is contained in:
2026-06-12 18:58:24 -06:00
parent ef9644e885
commit 0ce174f0f7
+7 -8
View File
@@ -21,28 +21,27 @@ if (-not ([Security.Principal.WindowsIdentity]::GetCurrent().Groups -contains 'S
Write-Host "ABORTING ANY SCHEDULED SHUTDOWN"
shutdown /a | Out-Null # cmd abort scheduled shutdowns
Write-Host "Clearing DNS"
Write-Host "CLEARING DNS"
ipconfig /flushsdns | Out-Null
Write-Host "Clearing ARP Cache"
Write-Host "CLEARING ARP CACHE"
Remove-NetNeighbor -Confirm:$false | Out-Null
Write-Host "Renewing DHCP"
Write-Host "RENEWING DHCP"
ipconfig /releasen | Out-Null
ipconfig /renew | Out-Null
Write-Host "LAUNCHING WINDOWS MALICIOUS SOFTWARE REMOVAL TOOL (MRT) FOLLOW DIRECTIONS FOR FULL SCAN"
# mrt # builtin malware removal tools
Start-Process -FilePath "MRT.exe" -Verb RunAs -Wait # pause until mrt is done
Start-Process "MRT.exe" -NoNewWindow -Wait # builtin malware removal tools -ArgumentList
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
Start-Process "DISM.exe" -ArgumentList "/Online /Cleanup-Image /RestoreHealth" -Wait -NoNewWindow # powershell checks image and replaces bad filesm waits to fimis
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
Start-Process "SFC.exe" -ArgumentList "/scannow" -Wait -NoNewWindow # 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)"
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)
Start-Process "cmd.exe" -ArgumentList "-c 'echo y | chkdsk /f /r C:; exit'" # cmd checks C drive after reboot to waste time and fix errors (noninteractive)
Write-Host "SCHEDULING WINDOWS DEFENDER OFFLINE SCAN MAY REBOOT UNEXPECTEDL"
Start-MpWDOScan # powershell starts Windows Defender Offline Scan after reboot