close to final rev

This commit is contained in:
2026-06-12 22:39:16 -06:00
parent ddec60146b
commit 7dfeec2898
2 changed files with 11 additions and 8 deletions
+3 -1
View File
@@ -95,8 +95,10 @@ script=/tmp/install_script.sh && curl -s https://git.thecoven.info/PrincessPi/ge
* `redundant-backup.ps1` * `redundant-backup.ps1`
#### anti-productivity #### anti-productivity
* `IM_SO_TIRED_BOSS.ps1` * `IM_SO_TIRED_BOSS.ps1`
### Clean up Windows!
```powershell ```powershell
iwr -UseBasicParsing -Uri "https://git.thecoven.info/PrincessPi/general-scripts-and-system-ssssssetup/raw/branch/main/Windows-Scripts/windows-repair.ps1?nocache=$(Get-Random)" -OutFile "$env:TEMP\windows-repair3.ps1"; &"$env:TEMP\windows-repair3.ps1" iwr -UseBasicParsing -Uri "https://git.thecoven.info/PrincessPi/general-scripts-and-system-ssssssetup/raw/branch/main/Windows-Scripts/windows-repair.ps1?nocache=$(Get-Random)" -OutFile "$env:TEMP\windows-repair-temp.ps1"; powershell -ExecutionPolicy Bypass -File "$env:TEMP\windows-repair-temp.ps1"
``` ```
todo: todo:
+8 -7
View File
@@ -5,7 +5,7 @@
# alt+y # alt+y
# Run: # Run:
# In powershell Terminal: # In powershell Terminal:
# iwr -UseBasicParsing -Uri "https://git.thecoven.info/PrincessPi/general-scripts-and-system-ssssssetup/raw/branch/main/Windows-Scripts/windows-repair.ps1?nocache=$(Get-Random)" -OutFile "$env:TEMP\windows-repair-temp.ps1"; &"$env:TEMP\windows-repair-temp.ps1" # iwr -UseBasicParsing -Uri "https://git.thecoven.info/PrincessPi/general-scripts-and-system-ssssssetup/raw/branch/main/Windows-Scripts/windows-repair.ps1?nocache=$(Get-Random)" -OutFile "$env:TEMP\windows-repair-temp.ps1"; powershell -ExecutionPolicy Bypass -File "$env:TEMP\windows-repair-temp.ps1"
# check if hasadmin rights, if notm run script in new terminal, clopsing old # check if hasadmin rights, if notm run script in new terminal, clopsing old
## if not, carry on ## if not, carry on
@@ -19,7 +19,7 @@ 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 > $null # cmd abort scheduled shutdowns shutdown /a 2> $null > $null # cmd abort scheduled shutdowns
Write-Host "GENERATING AND DISPLAYING COMPREHENSIVE STABILITY REPORT" Write-Host "GENERATING AND DISPLAYING COMPREHENSIVE STABILITY REPORT"
Start-Process "perfmon" -ArgumentList "/report" -Wait Start-Process "perfmon" -ArgumentList "/report" -Wait
@@ -37,26 +37,27 @@ if (-not ([Security.Principal.WindowsIdentity]::GetCurrent().Groups -contains 'S
ipconfig /releasen > $null ipconfig /releasen > $null
ipconfig /renew > $null ipconfig /renew > $null
Write-Host "Clearing all SAMBA Credentials"
net use * /delete /y > $null
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"
Start-Process "MRT.exe" -NoNewWindow -Wait # builtin malware removal tools -ArgumentList Start-Process "MRT.exe" -NoNewWindow -Wait # builtin malware removal tools -ArgumentList
Write-Host "RUNNING DISM ONLINE IMAGE CLEANUP" Write-Host "RUNNING DISM ONLINE IMAGE CLEANUP"
DISM /Online /Cleanup-Image /RestoreHealth 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)" Write-Host "LAUNCHING SYSTEM FILE CHECKER (SFC)"
SFC /scannow 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)" Write-Host "SCHEDULING OFFLINE CHECK DISK AND REPAIR OF C: (CHKDSK)"
echo y | chkdsk /f /r C: # cmd checks C drive after reboot to waste time and fix errors (noninteractive) echo 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" 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 "SCHEDULINMG OFFLINE MEMTEST" Write-Host "SCHEDULINMG OFFLINE MEMTEST"
mdsched.exe mdsched.exe # schedule offline memtest
Write-Host "`nREBOOTING IN 5 MINUTES MAX PROVBABLY SOONER`n" Write-Host "`nREBOOTING IN 5 MINUTES MAX PROVBABLY SOONER`n"
shutdown /r /t 300 shutdown /r /t 300 # shutdown in 5 minutes as failsafe
} }