title: KIll a Process exceeding x GB Memory in Windows Server 2016 with bash (x > Int Range)
body: <p>I'm trying to auto kill a process via batch script in Windows Server 2016. The process should be killed if the Memory usage of any process is above 12GB.</p>
  <p>There is already a Version to kill processes below the maximum INT value: <a href="https://stackoverflow.com/questions/44257686/kill-process-if-it-exceeds-6gb">kill process if it exceeds 6GB</a></p>
  <p>This does NOT work for bigger values than INT can handle. You can't kill a task bigger than 2,147,483,647 x 2.</p>
  <p>So</p>
  <pre><code>taskkill /F /FI &quot;MemUsage gt 12000000000&quot;
  </code></pre>
  <p>results in</p>
  <pre><code>ERROR: The search filter cannot be recognized.
  </code></pre>
  <p>Any idea how to circumvent the (32-Bit) Limit in the MemUsage filter given by the Integer Range?</p>
  <p>Taskkill documentation: <a href="https://ss64.com/nt/taskkill.html" rel="nofollow noreferrer">https://ss64.com/nt/taskkill.html</a></p>