# Windows System Maintenance Scripts
Quick-access batch scripts for common Windows system maintenance tasks.
Scripts Overview
| Script | Purpose | Run As Admin? |
|---|---|---|
1.chkdsk.bat | Check disk for errors | Yes |
2.chkdsk f.bat | Fix disk errors automatically | Yes |
3.scannow.bat | Run Windows system file checker (SFC) | Yes |
4.Restorehealth.bat | Run DISM to restore system health | Yes |
5.memoryusage.bat | Check memory/ RAM usage | No |
6.memoryusage2.bat | Detailed memory report | No |
7.RAM.bat | RAM optimization info | No |
8.DynamicTick.bat | Check dynamic tick setting | No |
Usage
batch
:: Run individually
1.chkdsk.bat
3.scannow.batQuick Reference
Disk Errors
batch
:: Check disk
chkdsk
:: Fix errors (schedules on restart)
chkdsk /fSystem File Repair
batch
:: Scan and repair Windows files
scannow
:: If SFC fails, restore health
DISM /Online /Cleanup-Image /RestoreHealthMemory Issues
batch
:: Check current memory usage
systeminfo | findstr /C:"Total Physical Memory" /C:"Available Physical Memory"
:: Clear memory (works lightly)When to Use
| Problem | Script |
|---|---|
| "Disk error" messages, slow file access | 1.chkdsk.bat or 2.chkdsk f.bat |
| System file corruption, crashes | 3.scannow.bat |
| Windows won't start, image repair | 4.Restorehealth.bat |
| Slow performance, low RAM | 5.memoryusage.bat |
| Verify Windows activation | (Use W10A.bat in cache_management) |
Important Notes
- Schedule disk checks:
chkdsk /frequires restart - Run in order: For serious issues:
3→4→1 - Patience: SFC and DISM can take 15-30 minutes
- Create restore point before major repairs
Architecture Feedback
Spotted a potential optimization or antipattern? Let me know.