I am working with a VB Script file written by someone else that uses Windows Management Instrumentation (WMI) calls to check the status of several Windows services. This Script runs every few minutes according to a set schedule. I need to update / replace .exe for these services.
I stop VB Script, stop the services, and delete the services so that they no longer appear in the Services panel (services.msc). Unfortunately, WMI (wmiprvse.exe) still has a handle in the service .exe files. I can free the descriptor by rebooting the system, but I want to avoid this, if at all possible, so this could be a fully written / automatic update.
Is there a way to get WMI to release the handle on .exe? Please keep in mind that I am new to WMI.
scripting wmi windows-services
Nate Sauber Nov 19 '08 at 15:41 2008-11-19 15:41
source share