Task Manager in Startup

Mar 19, 2014 at 5:39 PM
I have a preference where I like to have Task Manager run on startup. I prefer to have it start minimized, and have it run in the system tray.

How can I have it so that BoxStarter does these three things:
  • creates a shortcut to C:\Windows\System32\Taskmgr.exe to my profile's startup dir?
    %appdata%\Microsoft\Windows\Start Menu\Programs\Startup
  • modify the shortcut to run minimized
  • modify Task Manager's settings for 'Hide When Minimized'
Mar 20, 2014 at 8:01 AM
Edited Mar 20, 2014 at 9:49 AM

In the same way that you can with Chocolatey Packages, you can put any arbitrary PowerShell code into your Boxstarter Packages. So although there might not be any helper methods to do some of this work for you just now, you should be able to do it yourself.

Although not in the current release of Chocolatey, I have recently added a generic "Install-ChocolateyShortcut" helper function to Chocolatey, which you can see here:


I believe that it is planned that this will be pulled into the next release of Chocolatey, but in the mean time, you could use this helper method in your own package.

With regard to the 3rd point, I think it is likely going to be similar to what is done here:


i.e. you would need to find the registry key that controls that setting in Task Manager, and then set it to what you want. The suggestion to make the Task Manager options into a Helper Method in Boxstarter I think makes sense, so you might want to create an issue here:


To see what Matt has to say.

With regard to your second point, I am not sure how to make that happen. If I find anything I will let you know, but hopefully someone else might be able to offer something here.

Hope that helps!