User Tools

Site Tools


windows:notes:scripts

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
windows:notes:scripts [2026/10/06 18:37] – created Sean Rhonewindows:notes:scripts [2026/10/06 18:52] (current) – [60s Reboot] Sean Rhone
Line 1: Line 1:
-====== Offline CHKDSK ======+====== Main ====== 
 + 
 +===== Maintenance ===== 
 + 
 +  "%SystemRoot%\System32\notepad.exe" "%UserProfile%\Desktop\Maintenance.bat" 
 + 
 +<code> 
 +@echo off 
 + 
 +TITLE Maintenance 
 +CD "%Temp%" 
 + 
 +:: Disk Cleanup Set-up 
 +"%SystemRoot%\System32\cleanmgr.exe" /sageset:9999 
 + 
 +:: System File Check, Cleanup, and Repair 
 +"%SystemRoot%\System32\Dism.exe" /online /Cleanup-Image /StartComponentCleanup /ResetBase /RestoreHealth 
 +"%SystemRoot%\System32\sfc.exe" /scannow 
 + 
 +:: Disk Cleanup 
 +"%SystemRoot%\System32\cleanmgr.exe" /sagerun:9999 
 + 
 +:: Volume Shadow Copy 
 +"%SystemRoot%\System32\vssadmin.exe" Delete Shadows /All 
 + 
 +:: USN Change Journal 
 +"%SystemRoot%\System32\fsutil.exe" usn deleteJournal /D "%SystemDrive%" 
 + 
 +:: .NET Framework 4 
 +"%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\ngen.exe" update /force /queue 
 +"%SystemRoot%\Microsoft.NET\Framework64\v4.0.30319\ngen.exe" update /force /queue 
 +"%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\ngen.exe" executequeueditems 
 +"%SystemRoot%\Microsoft.NET\Framework64\v4.0.30319\ngen.exe" executequeueditems 
 + 
 +ECHO Explorer close 
 +PAUSE 
 +"%SystemRoot%\System32\taskkill.exe" /F /IM "explorer.exe" 
 +"%SystemRoot%\System32\timeout.exe" /T "2" /NOBREAK 
 + 
 +:: Icon Cache 
 +DEL /F /Q "%LocalAppData%\Microsoft\Windows\Explorer\"*".db" 
 +DEL /F /Q "%UserProfile%\AppData\Local\IconCache.db" 
 + 
 +:: Temp Dirs 
 +DEL /F /Q "%LocalAppData%\Temp\*" 
 +DEL /F /Q "%SystemRoot%\Temp\*" 
 + 
 +TIMEOUT /T "2" /NOBREAK 
 +START explorer.exe 
 + 
 +:: Defrag/Trim 
 +ECHO Defrag 
 +PAUSE 
 +"%SystemRoot%\System32\Defrag.exe" /AllVolumes /Defrag /TierOptimize /SlabConsolidate /Retrim /Optimize /PrintProgress /Verbose /NormalPriority 
 + 
 +PAUSE 
 + 
 +:: End</code> 
 + 
 +  "%UserProfile%\Desktop\Maintenance.bat" 
 + 
 +===== Remove Intel Microcode ===== 
 + 
 +  "%SystemRoot%\System32\notepad.exe" "%UserProfile%\Downloads\Remove Intel Microcode.bat" 
 + 
 +<code> 
 +@echo off 
 + 
 +CD "%Temp%" 
 + 
 +"%SystemRoot%\System32\takeown.exe" /F "%SystemRoot%\System32\mcupdate_GenuineIntel.dll" 
 +"%SystemRoot%\System32\icacls.exe" "%SystemRoot%\System32\mcupdate_GenuineIntel.dll" /grant "Administrators:F" 
 + 
 +DEL /Q "%SystemRoot%\System32\mcupdate_GenuineIntel.dll" 
 + 
 +:: End</code> 
 + 
 +  "%UserProfile%\Downloads\Remove Intel Microcode.bat" 
 + 
 +===== ScriptTiger HOSTS ===== 
 + 
 +  * https://scripttiger.github.io/alts/ 
 +  * ''fakenews + gambling'' (Compressed) 
 + 
 +  "%SystemRoot%\System32\notepad.exe" "%UserProfile%\Downloads\ScriptTiger Hosts (fakenews + gambling).bat" 
 + 
 +<code> 
 +@echo off 
 + 
 +TITLE ScriptTiger Hosts (fakenews + gambling) 
 +CD "%Temp%" 
 + 
 +"%SystemRoot%\System32\curl.exe" --output "%Temp%\blacklist-fg.txt" --location "https://scripttiger.github.io/alts/compressed/blacklist-fg.txt" --progress-bar 
 +MOVE /Y "%Temp%\blacklist-fg.txt" "%SystemRoot%\System32\drivers\etc\hosts" 
 + 
 +"%SystemRoot%\System32\ipconfig.exe" /flushdns 
 +"%SystemRoot%\System32\ipconfig.exe" /registerdns 
 + 
 +:: End</code> 
 + 
 +  "%UserProfile%\Downloads\ScriptTiger Hosts (fakenews + gambling).bat" 
 + 
 +===== Install Microsoft Store ===== 
 + 
 +  "%SystemRoot%\System32\notepad.exe" "%UserProfile%\Downloads\Install Microsoft Store.bat" 
 + 
 +<code> 
 +@echo off 
 + 
 +TITLE Install Microsoft Store 
 +CD "%Temp%" 
 + 
 +"%SystemRoot%\System32\WSReset.exe" -i 
 +"%SystemRoot%\System32\timeout.exe" /T "20" /NOBREAK 
 + 
 +"%SystemRoot%\System32\WSReset.exe" -i 
 + 
 +EXIT /B 
 + 
 +:: End</code> 
 + 
 +  "%UserProfile%\Downloads\Install Microsoft Store.bat" 
 + 
 +====== Misc ====== 
 + 
 +===== Offline CHKDSK =====
  
   "%SystemRoot%\System32\notepad.exe" "%UserProfile%\Desktop\Offline CHKDSK (Reboot).bat"   "%SystemRoot%\System32\notepad.exe" "%UserProfile%\Desktop\Offline CHKDSK (Reboot).bat"
Line 16: Line 141:
   "%UserProfile%\Desktop\Offline CHKDSK (Reboot).bat"   "%UserProfile%\Desktop\Offline CHKDSK (Reboot).bat"
  
-====== 60s Reboot ======+===== 60s Reboot =====
  
-  * Removing ''Microsoft ACPI-Compliant System'' causes lack-of input on USB-only Dell AIO+  * :!: Removing ''Microsoft ACPI-Compliant System'' causes lack-of input on USB-only Dell AIO
  
   "%SystemRoot%\System32\notepad.exe" "%UserProfile%\Desktop\Reboot (60s).bat"   "%SystemRoot%\System32\notepad.exe" "%UserProfile%\Desktop\Reboot (60s).bat"
/usr/local/www/wiki/data/attic/windows/notes/scripts.1791326278.txt.gz · Last modified: by Sean Rhone