The current Windows 10 upgrade 21H1 mentioned
The WMIC tool is deprecated
But to avoid manually fiddling with Task Manager I just call—actually via DOSKEY macros—in cmd.exe, like
wmic process where name="firefox.exe" CALL setpriority "below normal"
I found
powershell (Get-WmiObject Win32_process -filter 'name = "firefox.exe"' | foreach { "$($_.SetPriority(16384))"})
which is kind of a replacement, but, you see the difference which is the reason, switching to PowerShell was never an option for me.
I've seen cmdlets mentioned to replace wmic
, but couldn't find how setting the process priority is meant to be done nowadays neither any good documentation by Microsoft—sigh.
Verb-Noun
and typically you just need to find the noun that you want to work with. In factGet-WmiObject
is also going to be deprecated, replacing byGet-CimInstance