💡 Introduction
Tired of manually switching between Light and Dark themes on your Windows PC? Want your system to automatically adjust based on your schedule, just like your smartphone does? Look no further!
The Auto Light/Dark Mode Scheduler by AKSHAT_530 is here to revolutionize your daily workflow and aesthetics with a seamless, automated theme switching system powered entirely by PowerShell.
🚀 What It Does
This powerful PowerShell script allows you to:
- ✅ Automatically switch between Light Mode and Dark Mode at your chosen times.
- ✅ Create scheduled tasks that run silently in the background.
- ✅ Set theme preferences at the registry level, ensuring deep system integration.
- ✅ Fully remove and reset all customizations with one click if needed.
- ✅ Maintain a log file of theme switches for debugging and history.
- ✅ Run with elevated privileges to ensure full access to required system settings.
🔧 How It Works
1. User-Friendly Setup
Upon running, the script provides a simple interface to:
- Schedule your preferred Light and Dark mode times (in 24-hour format).
- Automatically create corresponding PowerShell scripts for each mode.
- Register these scripts as Windows Scheduled Tasks using
Task Scheduler
.
2. Theme Switching Logic
Behind the scenes, it modifies the following registry entries:
AppsUseLightTheme
SystemUsesLightTheme
This ensures that both the Windows UI and your apps adhere to your selected theme.
3. System Refresh
To apply changes instantly:
explorer.exe
is restarted silently.- UI is refreshed using a Windows API call to
USER32.DLL
.
4. One-Click Cleanup
Want to go back? The built-in cleanup function:
- Deletes scheduled tasks.
- Removes mode scripts and logs.
- Resets your system to Light Mode by default.
🔄 Why It’s Better Than Auto Dark APP
🆚Auto Dark App vs. Akshat’s Auto Dark Script
Auto DarkApp or any other app constantly run in background and eat ram and cpu But this Script only Trigger at Set time and auto exit
👉 This scheduler only runs once per switch using Windows Task Scheduler — no background apps or services required. That means zero RAM/CPU usage after the task runs.
✅ Why You Should Use It
- Set-and-Forget Simplicity
- No 3rd Party Software
- Clean and Lightweight
- Customizable and Flexible
- Professional Aesthetic
- Boost Productivity
- System Integrity
- Educational Value
- Fully Reversible
- Includes Logging
🛠️ Requirements
- ✅ Windows 10 or 11
- ✅ PowerShell 5.1 or later
- ✅ Admin privileges (script prompts if not detected)
📥 How to Use
- Unzip the downloaded File Run the RUN_AutoDarkMode.bat
- Follow the On-Screen Prompts
- Enjoy hassle-free Light/Dark switching every day!
🔚 Conclusion
The Auto Light/Dark Mode Scheduler by AKSHAT_530 isn’t just a utility — it’s a smarter, lighter, and more efficient alternative to Auto Dark APP. With zero background resource usage and total scheduling flexibility, this script lets your system work smarter, not harder.