r/Batch • u/Lil_Batti • Jun 09 '25
Wrote a batch script for Windows maintenance – it’s saving me a ton of time
I made a Windows Maintenance Tool in batch — it's simple, clean, and actually useful
Hey everyone,
I’ve been messing around with batch scripting lately and decided to put together a Windows maintenance tool. It’s basically a one-stop script that can help clean up your system, run built-in diagnostics, fix common network issues, and generate system reports — all from one terminal menu.
It started as a personal project for my own use, but it’s become pretty handy, so I figured I’d share it.
What it does:
Run things like SFC, DISM, CHKDSK without digging through menus
Restart network adapters with one click (auto-detects active ones)
Reset Windows Update services (stops + clears cache + restarts)
DNS tools: flush, set Google/Cloudflare, or custom DNS input
Generate full system reports (driver list, system info, IP config) — saved as 3 separate
.txtfiles to keep it organizedOption to clean up temp files and do basic optimization
I made sure nothing destructive runs silently — most of it uses built-in Windows tools like netsh, ipconfig, systeminfo, etc.
Why I made it:
I got tired of typing the same commands every time someone had a problem, so this just automates everything. It’s also a nice little project for learning batch scripting.
If anyone wants to try it or has feedback, Download link: https://github.com/ios12checker/Windows-Maintenance-Tool
Let me know if there's anything you'd add or improve — I’m still updating it.

4
u/Serpher Jun 09 '25
Daaamn. I used to do this kind of scripts like 15 years ago. Have fun!
5
u/Lil_Batti Jun 10 '25
Thank you, I've been debating about posting it, because I didn't know if people were gonna use it.
But as what I've seen until now, people are using it and I'm just happy that it could help a little🙂
2
2
1
u/BakeResident2098 Jul 09 '25
Awesome work , but you might want to think of converting this so that you can run this from a MMR (controlup or nexthink )tool or intune
1
u/AlternativeFamous871 Sep 20 '26
Yo This thing is Fire, I can do everything on my PC in just one place
9
u/MotanulScotishFold Jun 09 '25
I did something similar at my previous job that saved a ton of work.
Unlock user account (AD)
Wake on Lan
Info of remote PC
Clean print queue list
Clean temp files on remote PC
Find name of user through username (AD)
Add remote PC in domain
that's just a few from the list i remember.
Very useful when you had 3000+ devices where I had full admin control remotelly on each one and most of time I didn't need to even call my colleagues to fix things due to the script i've made.