the problem is this

Quote:


Windows Management Instrumentation Driver Extensions
Windows Management Instrumentation





he wants to check for the service "Windows Management Instrumentation" to see if it is running.

if you run this.

shell '%comspec% /c net start | find /i "Windows Management Instrumentation" > nul'

and are depending on FIND's setting of the @error to determin if "Windows Management Instrumentation" is running or not. you will get a false positive if "Windows Management Instrumentation Driver Extensions" is running and "Windows Management Instrumentation" is not running.

the FIND command will find both of these....

Windows Management Instrumentation Driver Extensions
Windows Management Instrumentation