Forum posts for WmiPrvSE.exe

Want to script Windows WMI (wmiprvse.exe) to release handle on file

I'm working with a VB Script file written by someone else that uses Windows Management Instrumentation (WMI) calls to check on the status of several Windows Services. This script runs every few minutes on set schedule. I need to upgrade/replace the .exe for those services.

I stop the VB Script, stop the services, and uninstall the services so they no longer appear in the Services panel (services.msc). Unfortunately, WMI (wmiprvse.exe) still has a handle on the service .exe files. I can release the handle by rebooting the system, but I want to avoid that if at all possible so this can be a completely scripted/automated upgrade.

Is there a way I can force WMI to release it's handle on the .exe? Please keep in mind I'm new to working with WMI.

View complete forum thread with replies

Other posts related to WmiPrvSE.exe

See Related Forum Messages: Follow the Links Below to View Complete Thread

Pipe answer from tasklist to check mem usage of process and kill if exceeding threshold
SQL Server 2008 R2 - Can't open a connection
Want to script Windows WMI (wmiprvse.exe) to release handle on file
Parse a task list
WMIPRVSE needs to be run under network services by default
Why is a WPF TextBox sending wmiprvse.exe out of control?
CSV formatting in batch files

What is the carbon footprint of your coffee?

Is it low? Is it high? Can this things really kill the planet Earth? Maybe the answer will surprise you. Maybe not.