Last active
May 20, 2025 12:24
-
-
Save keejelo/7f16ef96427ef9fde360463f789378ea to your computer and use it in GitHub Desktop.
Windows 10, run taskmanager minimized/hidden window at logon (and only show icon in the taskbartray)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @ECHO OFF | |
| CLS | |
| ECHO CreateObject("Wscript.Shell").Run("taskmgr.exe"),0,False>"%temp%\taskman.vbs" | |
| %windir%\System32\cscript.exe %temp%\taskman.vbs //nologo | |
| EXIT | |
| :: | |
| :: Windows 10, run taskmanager minimized/hidden window at logon (and only show icon in the taskbartray) | |
| :: Created by Keejelo - 2025 | |
| :: https://gist.github.com/keejelo/7f16ef96427ef9fde360463f789378ea | |
| :: | |
| :: How to run taskmanager minimized/hidden window at logon: | |
| :: | |
| :: 1. Open Task Manager and click "More details" to activate the top menu. | |
| :: | |
| :: 2. Go to "Options" menu and toggle "Hide when minimized" checked (on) | |
| :: | |
| :: 3. Then copy this file (run_taskman.bat) in your startup directory ( Win+R and type: shell:startup ) | |
| :: Alternative: Copy this file to "C:" and create a new task in the "TaskScheduler" that runs this file | |
| :: at logon, and with a 30 secs. delay. | |
| :: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment