1781305842

This commit is contained in:
2026-06-12 17:10:42 -06:00
parent 2ba84c8273
commit f3b9253fa6
+13 -5
View File
@@ -12,21 +12,29 @@ if (-not ([Security.Principal.WindowsIdentity]::GetCurrent().Groups -contains 'S
Write-Host "`nFIXING WINDOWS FULL STYLE`n" Write-Host "`nFIXING WINDOWS FULL STYLE`n"
Write-Host "ABORTING ANY SCHEDULED SHUTDOWN" Write-Host "ABORTING ANY SCHEDULED SHUTDOWN"
shutdown /a # cmd abort scheduled shutdowns shutdown /a > $null # cmd abort scheduled shutdowns
Write-Host "Clearing DNS"
ipconfig /flushsdns
Write-Host "Renewing DHCP"
ipconfig /release
ipconfig /renew
Write-Host "LAUNCHING WINDOWS MALICIOUS SOFTWARE REMOVAL TOOL (mrt) FOLLOW DIRECTIONS FOR FULL SCAN" Write-Host "LAUNCHING WINDOWS MALICIOUS SOFTWARE REMOVAL TOOL (mrt) FOLLOW DIRECTIONS FOR FULL SCAN"
mrt # cmd malicious software removal tool # mrt # builtin malware removal tools
Start-Process -FilePath "MRT.exe" -Verb RunAs -Wait # pause until mrt is done
Write-Host "RUNNING DISM ONLINE IMAGE CLEANUP" Write-Host "RUNNING DISM ONLINE IMAGE CLEANUP"
DISM /Online /Cleanup-Image /RestoreHealth # powershell checks image and replaces bad files Start-Process -FilePath "DISM.exe" -Verb RunAs -ArgumentList " /Online /Cleanup-Image /RestoreHealth" -waut # powershell checks image and replaces bad filesm waits to fimish
Write-Host "LAUNCHING SYSTEM FILE CHECKER (sfc)" Write-Host "LAUNCHING SYSTEM FILE CHECKER (sfc)"
sfc /scannow # cmd system file checker, retreives and replaces bad system files 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)"
Write-Host y | chkdsk /f /r C: # cmd checks C drive after reboot to waste time and fix errors (noninteractive) Write-Host 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" Write-Host "SCHEDULING WINDOWS DEFENDER OFFLINE SCAN MAY REBOOT UNEXPECTEDL"
Start-MpWDOScan # powershell starts Windows Defender Offline Scan after reboot Start-MpWDOScan # powershell starts Windows Defender Offline Scan after reboot
Write-Host "`nREBOOTING IN 5 MINUTES MAX PROVBABLY SOONER`n" Write-Host "`nREBOOTING IN 5 MINUTES MAX PROVBABLY SOONER`n"