Windows Command-Line – Changing Process Priority

command linepriorityprocesswindows

I want to change Windows process priority via command line.

How can I do that?

Best Answer

The command line syntax:

wmic process where name="AppName" CALL setpriority ProcessIDLevel

Example:

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

or

wmic process where name="calc.exe" CALL setpriority "above normal"

Priority:

  • idle: 64 (or "idle")
  • below normal: 16384 (or "below normal")
  • normal: 32 (or "normal")
  • above normal: 32768 (or "above normal")
  • high priority: 128 (or "high priority")
  • real time: 256 (or "realtime")
Related Question