<p>Is there a Windows equivalent of the Unix command, <em>nice</em>?</p>

<p>I'm specifically looking for something I can use at the command line, and <strong>not</strong> the "Set Priority" menu from the task manager.</p>

<p>My attempts at finding this on Google have been thwarted by those who can't come up with better adjectives.</p>

[{'answer_id': 4262, 'author': 'ggasp', 'author_id': 527, 'author_profile': 'https://Stackoverflow.com/users/527', 'pm_score': 3, 'selected': False, 'text': '<p>Maybe you want to consider using <a href="http://www.donationcoder.com/Software/Mouser/proctamer/index.html" rel="noreferrer">ProcessTamer</a> that "automatize" the process of downgrading or upgrading process priority based in your settings. </p>\n\n<p>I\'ve been using it for two years. It\'s very simple but really effective!</p>\n'}, {'answer_id': 4302, 'author': 'Chris Miller', 'author_id': 206, 'author_profile': 'https://Stackoverflow.com/users/206', 'pm_score': 3, 'selected': False, 'text': '<p>If you use <a href="http://www.microsoft.com/windowsserver2003/technologies/management/powershell/default.mspx" rel="noreferrer">PowerShell</a>, you could write a script that let you change the priority of a process.  I found the following PowerShell function on the <a href="http://monadblog.blogspot.com/2006/03/msh-how-to-change-processs-priority.html" rel="noreferrer">Monad blog</a>:</p>\n\n<pre><code>function set-ProcessPriority { \n    param($processName = $(throw "Enter process name"), $priority = "Normal")\n\n    get-process -processname $processname | foreach { $_.PriorityClass = $priority }\n    write-host "`"$($processName)`"\'s priority is set to `"$($priority)`""\n}\n</code></pre>\n\n<p>From the PowerShell prompt, you would do something line:</p>\n\n<pre><code>set-ProcessPriority SomeProcessName "High"\n</code></pre>\n'}, {'answer_id': 4332, 'author': 'Stephen Pellicer', 'author_id': 360, 'author_profile': 'https://Stackoverflow.com/users/360', 'pm_score': 7, 'selected': True, 'text': '<p>If you want to set priority when launching a process you could use the built-in <a href="https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/start" rel="noreferrer">START</a> command:</p>\n\n<pre class="lang-batch prettyprint-override"><code>START ["title"] [/Dpath] [/I] [/MIN] [/MAX] [/SEPARATE | /SHARED]\n      [/LOW | /NORMAL | /HIGH | /REALTIME | /ABOVENORMAL | /BELOWNORMAL]\n      [/WAIT] [/B] [command/program] [parameters]\n</code></pre>\n\n<p>Use the low through belownormal options to set priority of the launched command/program. Seems like the most straightforward solution. No downloads or script writing. The other solutions probably work on already running procs though.</p>\n'}, {'answer_id': 675056, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 3, 'selected': False, 'text': '<p>from <a href="http://techtasks.com/code/viewbookcode/567" rel="noreferrer">http://techtasks.com/code/viewbookcode/567</a></p>\n\n<pre><code># This code sets the priority of a process\n\n# ---------------------------------------------------------------\n# Adapted from VBScript code contained in the book:\n#      "Windows Server Cookbook" by Robbie Allen\n# ISBN: 0-596-00633-0\n# ---------------------------------------------------------------\n\nuse Win32::OLE;\n$Win32::OLE::Warn = 3;\n\nuse constant NORMAL =&gt; 32;\nuse constant IDLE =&gt; 64;\nuse constant HIGH_PRIORITY =&gt; 128;\nuse constant REALTIME =&gt; 256;\nuse constant BELOW_NORMAL =&gt; 16384;\nuse constant ABOVE_NORMAL =&gt; 32768;\n\n# ------ SCRIPT CONFIGURATION ------\n$strComputer = \'.\';\n$intPID = 2880; # set this to the PID of the target process\n$intPriority = ABOVE_NORMAL; # Set this to one of the constants above\n# ------ END CONFIGURATION ---------\n\nprint "Process PID: $intPID\\n";\n\n$objWMIProcess = Win32::OLE-&gt;GetObject(\'winmgmts:\\\\\\\\\' . $strComputer . \'\\\\root\\\\cimv2:Win32_Process.Handle=\\\'\' . $intPID . \'\\\'\');\n\nprint \'Process name: \' . $objWMIProcess-&gt;Name, "\\n";\n\n$intRC = $objWMIProcess-&gt;SetPriority($intPriority);\n\nif ($intRC == 0) {\n    print "Successfully set priority.\\n";\n}\nelse {\n    print \'Could not set priority. Error code: \' . $intRC, "\\n";\n}\n</code></pre>\n'}]
['https://Stackoverflow.com/questions/4208', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/55/']