From 205aa2b7a84ee8be7f4c3b800c392da396cfb906 Mon Sep 17 00:00:00 2001 From: PrincessPi3 Date: Fri, 12 Jun 2026 23:06:22 -0600 Subject: [PATCH] close to final rev --- Windows-Scripts/windows-repair.ps1 | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/Windows-Scripts/windows-repair.ps1 b/Windows-Scripts/windows-repair.ps1 index f37f3f4..4b4dfbd 100644 --- a/Windows-Scripts/windows-repair.ps1 +++ b/Windows-Scripts/windows-repair.ps1 @@ -41,16 +41,22 @@ if (-not ([Security.Principal.WindowsIdentity]::GetCurrent().Groups -contains 'S 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 + Start-Process -FilePath "MRT.exe" -ArgumentList "/F:Y /Q" -Wait # do full microsoft malicious software removal scan in background, wait to proceed + + Write-Host "UPDATING MALWARE SIGNATURES" + Update-MpSignature + + Write-Host "PERFORMING FULL WINDOWS DEFENDER SCAN" + Start-MpScan -ScanType FullScan Write-Host "RUNNING DISM ONLINE IMAGE CLEANUP" - DISM /Online /Cleanup-Image /RestoreHealth + DISM.exe /Online /Cleanup-Image /RestoreHealth Write-Host "LAUNCHING SYSTEM FILE CHECKER (SFC)" - SFC /scannow + SFC.exe /scannow Write-Host "SCHEDULING OFFLINE CHECK DISK AND REPAIR OF C: (CHKDSK)" - echo y | chkdsk.exe /f /r C: # cmd checks C drive after reboot to waste time and fix errors (noninteractive) + Write-Host y | chkdsk.exe /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 @@ -59,5 +65,5 @@ if (-not ([Security.Principal.WindowsIdentity]::GetCurrent().Groups -contains 'S mdsched.exe # schedule offline memtest Write-Host "`nREBOOTING IN 5 MINUTES MAX PROVBABLY SOONER`n" - shutdown /r /t 300 # shutdown in 5 minutes as failsafe + shutdown.exe /r /t 300 # shutdown in 5 minutes as failsafe } \ No newline at end of file