Can I set PowerShell 'Start-Job' with low priority?
问题 I would like to lower the priority of the jobs that I start with Start-Job in PowerShell scripts. Is this possible? 回答1: I used this trick right in a job's code (it can be optional, controlled by a parameter): [System.Threading.Thread]::CurrentThread.Priority = 'Lowest' Available priority values: Lowest, BelowNormal, Normal, AboveNormal, Highest 回答2: If you have launched it then you can use this: $a = gps powershell $a.PriorityClass = "BelowNormal" Or you can use this using the key: Get