From 98d3f30802e936adf7824a6585a05eee689b75b8 Mon Sep 17 00:00:00 2001 From: PrincessPi3 Date: Fri, 12 Jun 2026 15:37:37 -0600 Subject: [PATCH] 1781300257 --- Windows-Scripts/windows-repair.ps1 | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Windows-Scripts/windows-repair.ps1 b/Windows-Scripts/windows-repair.ps1 index d855b16..b64ab65 100644 --- a/Windows-Scripts/windows-repair.ps1 +++ b/Windows-Scripts/windows-repair.ps1 @@ -4,11 +4,10 @@ # alt+a # alt+y # Run: -# powershell.exe -ep bypass -NoProfile -c "iwr 'https://git.thecoven.info/PrincessPi/general-scripts-and-system-ssssssetup/raw/branch/main/Windows-Scripts/windows-repair.ps1' > "$env:TEMP\windows-repair.ps1"; powershell.exe -ep bypass -NoProfile -File "$env:TEMP\windows-repair.ps1" +# powershell.exe -Command "iwr" -ArgumentList "-Uri https://git.thecoven.info/PrincessPi/general-scripts-and-system-ssssssetup/raw/branch/main/Windows-Scripts/windows-repair.ps1 -OutFile $env:TEMP\windows-repair.ps1" && powershell.exe -ExecutionPolicy Bypass -Verb RunAS -NoProfile -File "$env:TEMP\windows-repair.ps1" -# Check for administrator privileges and if no, elevate if (-not ([Security.Principal.WindowsIdentity]::GetCurrent().Groups -contains 'S-1-5-32-544')) { - Start-Process -FilePath 'powershell' -Verb RunAs -ArgumentList "-ExecutionPolicy Bypass -NoProfile -File `"$PSCommandPath`" $args" + Start-Process -FilePath 'powershell' -Verb RunAs -ArgumentList "-ExecutionPolicy Bypass -File `"$PSCommandPath`" $args" } Write-Host "`nFIXING WINDOWS FULL STYLE`n" @@ -31,5 +30,5 @@ Write-Host y | chkdsk /f /r C: # cmd checks C drive after reboot to waste time a Write-Host "SCHEDULING WINDOWS DEFENDER OFFLINE SCAN" Start-MpWDOScan # powershell starts Windows Defender Offline Scan after reboot -# Write-Host "`nREBOOTING IN 5 MINUTES`n" -# shutdown /r /t 300 \ No newline at end of file +Write-Host "`nREBOOTING IN 5 MINUTES MAX PROVBABLY SOONER`n" +shutdown /r /t 300 \ No newline at end of file