Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Start process with low priority, NOT modify directly after start.

$
0
0

There are many examples to modify a process priority via powershell. All those examples have in common: start the process and then, AFTER it is started, set the priority.

Typical (abridged) example:

$proc.Start();
$proc.PriorityClass = [System.Diagnostics.ProcessPriorityClass]::Idle;

Is there no way to start a process directly as low priority instead of modifying it after start? Or do I have to use the ugly "start /low powershell -file" method since Microsoft forgot that within powershell?


Viewing all articles
Browse latest Browse all 15028

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>