Invoking windows task manager with 'performance' tab selected

Viewed 10726

I am currently invoking the windows task manager using a click event in WPF. The event simply executes 'Process.Start("taskmgr").

My question is, is there a way to choose which tab inside task manager is selected when the process starts / is displayed? I am looking to have the 'performance' tab selected automatically whenever the click event is raised.

Thanks for the help.

4 Answers

Starting with Windows 10 build 18305, you can now set a preferred tab to have Task Manager open to by default.

To update:

  • Click on the start menu and in the search box type 'Windows Update'
  • Chose 'Windows Update Settings'
  • In the left panel click 'Preview Builds'
  • Click on the 'Check' now.
  • Download the new build.

After update, change dword value of StartUpTab in Win registry key: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\TaskManager

0 – Processes tab
1 – Performance tab
2 – App history tab
3 – Startup tab
4 – Users tab
5 – Details tab
6 – Services tab

Win CMD:
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\TaskManager /v "startup" /t REG_DWORD /d "1"

This (experimental) feature is only available to some Windows Insiders.

No other tabs except "Start-up" are supported for older builds of Win 10:
taskmgr /4 /startup

To reset:
reg delete HKCU\Software\Microsoft\Windows\CurrentVersion\TaskManager /v "Preferences" /f

To confirm modified key:
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Applets\Regedit" /v "LastKey" /d "HKCU\Software\Microsoft\Windows\CurrentVersion\TaskManager" /f & regedit

Tested in Win 10 CMD

Related