Change Windows Service Priority
- by SchlaWiener
I have a windows service that needs to run with High Priority.
At the end of the day I want to use this script to modify the priority after service startup:
Const HIGH = 256
strComputer = "."
strProcess = "BntCapi2.exe"
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colProcesses = objWMIService.ExecQuery _…