testan weindows fizz

This commit is contained in:
2026-06-12 19:25:44 -06:00
parent 0ce174f0f7
commit ddec60146b
+19 -8
View File
@@ -19,33 +19,44 @@ if (-not ([Security.Principal.WindowsIdentity]::GetCurrent().Groups -contains 'S
Write-Host "`nFIXING WINDOWS FULL STYLE`n"
Write-Host "ABORTING ANY SCHEDULED SHUTDOWN"
shutdown /a | Out-Null # cmd abort scheduled shutdowns
shutdown /a > $null # cmd abort scheduled shutdowns
Write-Host "GENERATING AND DISPLAYING COMPREHENSIVE STABILITY REPORT"
Start-Process "perfmon" -ArgumentList "/report" -Wait
Write-Host "GENERATING AND DISPLAYING STABILITY HISTORY"
Start-Process "perfmon" -ArgumentList "/rel" -Wait
Write-Host "CLEARING DNS"
ipconfig /flushsdns | Out-Null
ipconfig /flushsdns > $null
Write-Host "CLEARING ARP CACHE"
Remove-NetNeighbor -Confirm:$false | Out-Null
Remove-NetNeighbor -Confirm:$false > $null
Write-Host "RENEWING DHCP"
ipconfig /releasen | Out-Null
ipconfig /renew | Out-Null
ipconfig /releasen > $null
ipconfig /renew > $null
Write-Host "LAUNCHING WINDOWS MALICIOUS SOFTWARE REMOVAL TOOL (MRT) FOLLOW DIRECTIONS FOR FULL SCAN"
Start-Process "MRT.exe" -NoNewWindow -Wait # builtin malware removal tools -ArgumentList
Write-Host "RUNNING DISM ONLINE IMAGE CLEANUP"
Start-Process "DISM.exe" -ArgumentList "/Online /Cleanup-Image /RestoreHealth" -Wait -NoNewWindow # powershell checks image and replaces bad filesm waits to fimis
DISM /Online /Cleanup-Image /RestoreHealth
# 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" -ArgumentList "/scannow" -Wait -NoNewWindow # cmd system file checker, retreives and replaces bad system files and waits fir it to finish
SFC /scannow
# 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" -ArgumentList "-c 'echo y | chkdsk /f /r C:; exit'" # cmd checks C drive after reboot to waste time and fix errors (noninteractive)
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"
Start-MpWDOScan # powershell starts Windows Defender Offline Scan after reboot
Write-Host "SCHEDULINMG OFFLINE MEMTEST"
mdsched.exe
Write-Host "`nREBOOTING IN 5 MINUTES MAX PROVBABLY SOONER`n"
shutdown /r /t 300
}