MID server upgrade fails due to: [wmi_collector.exe cannot be deleted .... cannot access the file because it is being used by another process]Description<!-- div.margin{ padding: 10px 40px 40px 30px; } table.tocTable{ border: 1px solid; border-color:#E0E0E0; background-color: rgb(245, 245, 245); padding-top: .6em; padding-bottom: .6em; padding-left: .9em; padding-right: .6em; } table.noteTable{ border:1px solid; border-color:#E0E0E0; background-color: rgb(245, 245, 245); width: 100%; border-spacing:2; } table.internaltable { white-space:nowrap; text-align:left; border-width: 1px; border-collapse: collapse; font-size:14px; width: 85%; } table.internaltable th { border-width: 1px; padding: 5px; border-style: solid; border-color: rgb(245, 245, 245); background-color: rgb(245, 245, 245); } table.internaltable td { border-width: 1px; padding: 5px; border-style: solid; border-color: #E0E0E0; color: #000000; } .title { color: #D1232B; font-weight:normal; font-size:28px; } h1{ color: #D1232B; font-weight:normal; font-size:21px; margin-bottom:-5px } h2{ color: #646464; font-weight:bold; font-size:18px; } h3{ color: #000000; font-weight:BOLD; font-size:16px; text-decoration:underline; } h4{ color: #646464; font-weight:BOLD; font-size:15px; text-decoration:; } h5{ color: #000000; font-weight:BOLD; font-size:13px; text-decoration:; } h6{ color: #000000; font-weight:BOLD; font-size:14px; text-decoration:; } ul{ list-style: disc outside none; margin-left: 0; } li { padding-left: 1em; } --> Symptoms During a MID Server Upgrade try, the Wrapper.log contains these messages, resulting in a failed MID Server upgrade attempt ... com.snc.dist.mid_upgrade.UpgradeMain missingOrCanDelete INFO | jvm 1 | <date/time stamp | INFO: <MID Server agent install path>\bin\sw_wmi\bin\wmi_collector.exe cannot be deleted: <MID Server agent install path>\bin\wmi_collector.exe (The process cannot access the file because it is being used by another process) Release Prior to London Patch 4 Hotfix 2 Environment Windows Servers hosting a MID Server and has installed "ServiceNow WMI Collector" service Cause wmi_collector.exe is locked. During an upgrade attempt the message may be due to the following: The process is hung for one reason or another and cannot be terminated by "Windows taskkill /F /PID <pid>" or through Task Manager "Kill Process Tree", or through Windows Services control panelwmi_collector listens on port 8585. If this port is already taken by another non-ServiceNow application but the ServiceNow wmi_collector repeatedly tries to bind and re-bind to this port every 30 seconds. For this it may possible to get the executable by running "netstat -aob | findstr 8585" and confirm if the non-ServiceNow process can be terminated. Resolution Workaround: Set the service startup option to "Disabled".Reboot the host system,Change the startup option to "Automatic" after upgrade completes then stop/start (or restart) the mid server service. Important note WMI Collector is deprecated in New York patch 10 and later. See the KB0791835 WMI Collector deprecation details for more information.