| |
Wyvern
Posts: 11
Score: 0
Joined: 6/21/2007
Status: offline
|
I am trying to use the basic script designed to change the priority level on running processes, but it fails to do anything to the particular executable I am targeting. It is a scanning prog created internally where I work to create a report of installed software, service status, etc.... The below script works fine on notepad, and many other processes, but not this particular one. The process in question has an executable that installs into the system32 folder, but has no unusual permissions. help anyone? Const BELOW_NORMAL = 16384 strComputer = "." Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2") Set colProcesses = objWMIService.ExecQuery _ ("Select * from Win32_Process Where Name = 'srvany.exe'") For Each objProcess in colProcesses objProcess.SetPriority(BELOW_NORMAL) Next
_____________________________
With enough bailing wire and duct tape, almost anything is possible.
|
|