1781297531
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
# alt+a
|
||||
# alt+y
|
||||
# Run:
|
||||
# powershell.exe -Command "Invoke-WebRequest -Uri `"https://raw.githubusercontent.com/PrincessPi3/general-scripts-and-system-ssssssetup/refs/heads/main/Windows-Scripts/windows-repair.ps1`" -OutFile `"$env:TEMP\windows-repair.ps1`"" && powershell.exe -ExecutionPolicy Bypass -File "$env:TEMP\windows-repair.ps1"
|
||||
# powershell.exe -ep bypass -NoProfile -c "iwr -Uri '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"
|
||||
|
||||
# Check for administrator privileges
|
||||
if (-not ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) {
|
||||
@@ -18,17 +18,17 @@ Write-Host "`nFIXING WINDOWS FULL STYLE`n"
|
||||
Write-Host "ABORTING ANY SCHEDULED SHUTDOWN"
|
||||
shutdown /a # cmd abort scheduled shutdowns
|
||||
|
||||
Write-Host "RUNNING WINDOWS MALICIOUS SOFTWARE REMOVAL TOOL (mrt)"
|
||||
Write-Host "LAUNCHING WINDOWS MALICIOUS SOFTWARE REMOVAL TOOL (mrt) FOLLOW DIRECTIONS FOR FULL SCAN"
|
||||
mrt # cmd malicious software removal tool
|
||||
|
||||
Write-Host "RUNNING SYSTEM FILE CHECKER (sfc)"
|
||||
sfc /scannow # cmd system file checker, retreives and replaces bad system files
|
||||
|
||||
Write-Host "RUNNING DISM"
|
||||
Write-Host "RUNNING DISM ONLINE IMAGE CLEANUP"
|
||||
DISM /Online /Cleanup-Image /RestoreHealth # powershell checks image and replaces bad files
|
||||
|
||||
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 "LAUNCHING SYSTEM FILE CHECKER (sfc)"
|
||||
sfc /scannow # cmd system file checker, retreives and replaces bad system files
|
||||
|
||||
# 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 "SCHEDULING WINDOWS DEFENDER OFFLINE SCAN"
|
||||
Start-MpWDOScan # powershell starts Windows Defender Offline Scan after reboot
|
||||
|
||||
Reference in New Issue
Block a user