Hi all,
i'm fighting with a script that has to change priority of a process, it has effects only on processes of the owner, if i want to elevate priority of an istance of a process lauched by another user the script has no result, i run it as administrator,
and only on administrator processes gives result
Thanks in advance for help
Const REAL_TIME = 256
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colProcesses = objWMIService.ExecQuery _
("Select * from Win32_Process Where Name = 'msaccess.exe' ")
For Each objProcess in colProcesses
objProcess.SetPriority(REAL_TIME)
Next