Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Task Manager visible in taskbar W10 [closed]

I like to have Task Manager (%windows%\system32\taskmgr.exe) running all the time on my PC to show CPU activity. I check Options>Hide When Minimized so that it only shows in the system tray (information area). With XP and W7 I simply made a shortcut with Run Minimized selected and placed it in the Startup folder.

With W10 this doesn't work; from the Startup folder (Win-R, shell:Startup); a Taskmgr shortcut just doesn't start. I can start Taskmgr using Task Scheduler but I cannot then start it minimised. I can use a batch file containing start /min taskmgr and this works from both the Startup folder and Task Scheduler, but it shows an icon in the taskbar. If I click this taskbar icon twice (restore and then minimise) then Taskmgr is only in the system tray as desired. Experiments with regedit of HKCU\Software\Microsoft\Windows\CurrentVersion\Run gave similar results.

Is there a way to achieve my wish: start with Taskmgr only visible in the system tray?

(I know about Process Explorer but would prefer a native Windows solution.)

like image 978
NL_Derek Avatar asked Oct 15 '15 19:10

NL_Derek


1 Answers

Start Task manager when Pc start up in minimized and hide his icon in task bar and show only the icon in system tray (option of hide when minimized in task manager menu) .

and your batch file "start /min taskmgr" not work with task schedule in way you like, so let's edit your batch:

echo createobject("wscript.shell").run "taskmgr.exe",0,false >t.vbs && start /wait t.vbs && del /f t.vbs

Write this whole line in a new batch file and use schedule task to start this batch.

OR use VBScript file:

createobject("wscript.shell").Run "taskmgr.exe",0,false

Just save this line in text file and name it anything like "t.vbs" and then add this script to the task schedule.

If you don't like schedule task to run this VBScript in start up of your pc or user login you can copy and paste " t.vbs " to start up in programs folder for

  • all user : %programdata%\Microsoft\Windows\Start Menu\Programs\StartUp
  • current user : %appdata%\Microsoft\Windows\Start Menu\Programs\Startup

OR if you don't like to use schedule tasks to run at PC start up and you like to run it through Run key in registry.

this batch file will accomplish all task for you from:

  1. Add to run in registry keys to start up the batch so no need schedule tasks

  2. Run CMD to create the VBScript

  3. Execute this script to minimized and hide Task Manager in tray icons

  4. Delete the VBScript after it run.

so every time you reboot your PC this TaskMgr will start in minimized window mode and his icon will show only in system tray if you like run this batch file for single user use HKCU instead HKLM

so every time you login with this user account it will start without reboot.

reg ADD "HKLM\software\microsoft\windows\currentversion\run" /v "TaskManager" /d "cmd.exe /c cd \"%userprofile%\" && echo createobject(\"wscript.shell\").run \"\"\"%systemroot%\system32\taskmgr.exe\"\"\",0,False > taskmgr.vbs && start /wait taskmgr.vbs && del /f taskmgr.vbs" /f

copy whole this one command line and paste in cmd.exe and run it or save it in text file then name it anything like " TaskMgr.bat " then run it through cmd.exe as administrator because if you add in registry you need administrator privilege most of time not all.

OR if you like to use registry editor instead of batch file to user Run in registry to start task manager

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
"TaskManager"="cmd.exe /c cd \"%userprofile%\" && echo createobject(\"wscript.shell\").run \"\"\"C:\\WINDOWS\\system32\\taskmgr.exe\"\"\",0,False > taskmgr.vbs && start /wait taskmgr.vbs && del /f taskmgr.vbs"

copy this lines in text file and then save it as "Taskmgr.reg" then double click this file to run .

like image 148
hollopost Avatar answered Jan 03 '23 11:01

hollopost