Set CPU Process Priority for Applications in Windows 10

    Set CPU Process Priority for Applications in Windows 10

    How to Set CPU Process Priority for Applications in Windows 10
    Published by Category: Performance & Maintenance
    16 Oct 2017
    Designer Media Ltd

    Published by


    Brink's Avatar
    Administrator

    Posts: 25,217

    Show Printable Version 


    How to Set CPU Process Priority for Applications in Windows 10

    information   Information
    Windows shares processor resources between all running processes based upon their priority level. If a process (application) has a higher priority level, it gets more processor resources for better performance compared to a process having lower priority.

    If you like, you can manually set priority for processes to run with a Realtime, High, Above normal, Normal, Below normal, or Low priority level in Windows based on your needs instead of the default priority. The changes you make to the priority level of a process (application) are only temporary and not set permanently. Once the application is closed or you restart the computer, Windows will forget the priority level you set for it.

    This tutorial will show you how to change the process priority of applications for processor resources in Windows 10.
    warning   Warning
    It is not recommended to set processes to have a realtime priority level since it could lower the performance of your system by causing all other lower priority processes to not have the resources they need.

    When you set a 100% CPU program to real-time priority, you get what you asked for The Old New Thing


    CONTENTS:
    • Option One: To Change Priority of Running Process in Task Manager
    • Option Two: To Change Priority of Running Process in PowerShell
    • Option Three: To Change Priority of Running Process in Command Prompt
    • Option Four: To Start Application with a Set Priority in Command Prompt





    Set CPU Process Priority for Applications in Windows 10 OPTION ONE Set CPU Process Priority for Applications in Windows 10
    To Change Priority of Running Process in Task Manager

    1. Open Task Manager in more details view.

    2. Click/tap on the Details tab, right click or press and hold on the process name (ex: "mspaint.exe"), click/tap on Set priority, and click/tap on the Realtime, High, Above normal, Normal, Below normal, or Low priority level you want to set for this process. (see screenshot below)

    Name:  Set_priority_Task_Manager-1.jpg
Views: 1972
Size:  77.4 KB

    3. Click/tap on Change priority to confirm. (see screenshot below)

    Name:  Set_priority_Task_Manager-2.png
Views: 1978
Size:  11.4 KB

    4. When finished, you can close Task Manager if you like.





    Set CPU Process Priority for Applications in Windows 10 OPTION TWO Set CPU Process Priority for Applications in Windows 10
    To Change Priority of Running Process in PowerShell

    1. Open PowerShell.

    2. Type the command below into PowerShell, and press Enter. (see screenshot below)

    Get-WmiObject Win32_process -filter 'name = "ProcessName"' | foreach-object { $_.SetPriority(PriorityLevelID) }

    Note   Note
    Substitute ProcessName in the command above with the actual name of the running process (ex: "mspaint.exe") you want to change the priority level of.Substitute PriorityLevelID in the command above with the number (ex: "32768") in the table below for the priority level (ex: "Above normal") you want to set for this process.

    For example: Get-WmiObject Win32_process -filter 'name = "mspaint.exe"' | foreach-object { $_.SetPriority(32768) }

    Priority Level ID Priority Level Name
    256 Realtime
    128 High
    32768 Above normal
    32 Normal
    16384 Below normal
    64 Low

    3. When finished, you can close PowerShell if you like.

    Name:  Set_priority_PowerShell.jpg
Views: 1967
Size:  32.6 KB





    Set CPU Process Priority for Applications in Windows 10 OPTION THREE Set CPU Process Priority for Applications in Windows 10
    To Change Priority of Running Process in Command Prompt

    1. Open a command prompt.

    2. Type the command below you want to use into the command prompt, and press Enter. (see screenshots below)

    wmic process where name="ProcessName" CALL setpriority "PriorityLevelName"

    OR

    wmic process where name="ProcessName" CALL setpriority PriorityLevelID

    Note   Note
    Substitute ProcessName in the command above with the actual name of the running process (ex: "mspaint.exe") you want to change the priority level of.

    Substitute PriorityLevelName in the command above with the priority level name (ex: "Above normal") in the table below you want to set for this process.

    Substitute PriorityLevelID in the command above with the number (ex: "32768") in the table below for the priority level (ex: "Above normal") you want to set for this process.

    For example:

    wmic process where name="mspaint.exe" CALL setpriority "Above normal"

    OR

    wmic process where name="mspaint.exe" CALL setpriority 32768

    Priority Level ID Priority Level Name
    256 Realtime
    128 High
    32768 Above normal
    32 Normal
    16384 Below normal
    64 Low

    3. When finished, you can close the command prompt if you like.

    Name:  Set_priority_name_command.jpg
Views: 1951
Size:  39.9 KB Name:  Set_priority_ID_command.jpg
Views: 1949
Size:  41.8 KB





    Set CPU Process Priority for Applications in Windows 10 OPTION FOUR Set CPU Process Priority for Applications in Windows 10
    To Start Application with a Set Priority in Command Prompt

    1. Open a command prompt.

    2. Type the command below into the command prompt, and press Enter. (see screenshot below)

    start "" /PriorityLevelName "Full path of application file"

    Tip   Tip
    If you like, you can use the command below to create a shortcut that will always open the application with the set priority.

    cmd /c start "" /PriorityLevelName "Full path of application file"

    Note   Note
    Substitute PriorityLevelName in the command above with the priority level name (ex: "AboveNormal") in the table below you want to set for this process.

    Substitute Full path of application file in the command above with the actual full path of the application file (ex: "C:\Windows\System32\mspaint.exe") you want to start.

    For example: start "" /AboveNormal "C:\Windows\System32\mspaint.exe"

    Priority Level Name
    Realtime
    High
    AboveNormal
    Normal
    BelowNormal
    Low

    3. When finished, you can close the command prompt if you like.

    Name:  Start_process_with_priority_command.png
Views: 1954
Size:  11.0 KB


    That's it,
    Shawn


  1.    23 Jul 2017 #1
    Join Date : Jul 2015
    South Africa
    Posts : 120
    Windows 10 Pro x64 16299.64

    A couple more options to launch Paint with Above Normal priority

    Example 1:
    Create a new shortcut or edit an existing shortcut then paste the following string in the target box:

    C:\Windows\System32\cmd.exe /c start "" /AboveNormal "C:\Windows\System32\mspaint.exe"

    Click on "Change Icon..." then navigate to "C:\Windows\System32\mspaint.exe" to change the shortcut icon.

    Name:  Screenshot (16).png
Views: 1907
Size:  19.0 KB

    Example 2:
    Add paint to the context menu
    Code:
    Windows Registry Editor Version 5.00
    
    ;Add Paint to context menu, Launch Paint with Above Normal Priority
    [HKEY_CLASSES_ROOT\Directory\background\Shell\Paint]
    @="Paint"
    "icon"="C:\\Windows\\system32\\mspaint.exe"
    "Position"=-
    
    [HKEY_CLASSES_ROOT\Directory\background\Shell\Paint\command]
    @="cmd.exe /c start /AboveNormal C:\\Windows\\System32\\mspaint.exe"

    Remove Paint from the context menu
    Code:
    Windows Registry Editor Version 5.00
    
    ;Remove Paint from context menu
    [-HKEY_CLASSES_ROOT\Directory\background\Shell\Paint]
    
    [-HKEY_CLASSES_ROOT\Directory\background\Shell\Paint\command]
      My ComputerSystem Spec

 


Similar Threads
Tutorial Category
Solved Changing process priority or limiting maximum CPU
Is there any way to change task priority in W10, as it was in previous versions (Task Manager|Set Priority)? Dropbox likes to spend the first 10 minutes after waking up my computer taking 60-90% of processor cycles, and I've also noticed other...
Performance & Maintenance
How to change network connection priority in Windows 10
I want to change the priority of the network connection in Windows 10 so that they follow a specific order. When I have multiple network connections, I want to change the priority so the network I prefer will be the first one to use. I tried to...
General Support
Network & Sharing Change Wireless Network Connection Priority Order in Windows 10
How to Change Wireless Network Connection Priority Order in Windows 10 Windows will usually automatically connect to networks in this priority order: Ethernet Wi‑Fi (wireless) Mobile broadband (cellular) When you connect to a new wireless...
Tutorials
Customization Change Priority of App Notifications in Action Center in Windows 10
How to Change Priority of App Notifications in Action Center in Windows 10 The Action Center in Windows 10 collects and shows notifications and alerts from traditional Windows applications and system notifications, alongside those generated...
Tutorials
How to choose Windows 10 user account sync priority during setup?
I have 2 computers both running Windows 10, one of which is brand new. When I setup the new computer, I signed in using Microsoft account, expecting the new computer to sync the settings from the old one. But instead, the new computer's default...
User Accounts and Family Safety
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 21:59.
Find Us
Twitter Facebook Google+ Ten Forums iOS App Ten Forums Android App



Windows 10 Forums