The solution to ID10,WMI error of Windows7 event
Recently, the computer crashed frequently, which was found by checking the log. Event ID10,WMI error
To find a solution by searching, copy the following code to a text file, save it as "repair .vbs", and run it all the way to determine.
Code:
StrComputer = "."
Set objWMIService = GetObject ("winmgmts:"
& "{impersonationLevel=impersonate}!\"
& strComputer & "\ root\ subscription")
Set obj1 = objWMIService.ExecQuery ("select from _ eventfilter where name='BVTFilter' and query='SELECT FROM _ InstanceModificationEvent WITHIN 60 WHERE TargetInstance ISA"Win32_Processor"AND TargetInstance.LoadPercentage > 99'")
For Each obj1elem in obj1
Set obj2set = obj1elem.Associators_ ("_ _ FilterToConsumerBinding")
Set obj3set = obj1elem.References_ ("_ _ FilterToConsumerBinding")
For each obj2 in obj2set
WScript.echo "Deleting the object"
WScript.echo obj2.GetObjectText_
Obj2.Delete_
Next
For each obj3 in obj3set
WScript.echo "Deleting the object"
WScript.echo obj3.GetObjectText_
Obj3.Delete_
Next
WScript.echo "Deleting the object"
WScript.echo obj1elem.GetObjectText_
Obj1elem.Delete_
Next
The cause of the problem:
This stems from the Windows 7 SP1 DVD / ISO creation process. There is a problem during the creation process that causes the WMI registration to remain in DVD / ISO. Because registration can only work during DVD / ISO creation, it cannot run on a real-time system and causes these events. These events do not represent any problems in the system and can be safely ignored. However, if you want to prevent the generation of these events and want to manually delete this particular WMI registration, follow the steps mentioned in this article to run the workaround script.
Original address https://support.microsoft.com/en-us/help/2545227/event-id-10-is-logged-in-the-application-log-after-you-install-service#FixItForMeAlways