Invoking windows task manager with 'performance' tab selected

后端 未结 4 1252
既然无缘
既然无缘 2021-02-15 12:44

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 c

4条回答
  •  北荒
    北荒 (楼主)
    2021-02-15 13:25

    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

提交回复
热议问题