Windows One Care Event ID 24 Fix

Windows One Care Event ID 24 Fix

Hello Unhappy WOC Users.

If you are anything like me then you probably hate the fact that after you uninstall Windows One Care you are left with errors in the windows event log every time you reboot your computer.

Well, I finally found the solution to this very annoying problem. :D

What exactly does this fix?

It fixes the errors below:

Event Type: Error
Event Source: WinMgmt
Event Category: None
Event ID: 24
Date: 06/02/2006
Time: 7:42:00 AM
User: N/A
Computer: TERRY
Description:
Event provider attempted to register query “SELECT * FROM __InstanceDeletionEvent WHERE TargetInstance ISA “MPSSVC_Agent” ” whose target class “MPSSVC_Agent” does not exist. The query will be ignored.

Event Type: Error
Event Source: WinMgmt
Event Category: None
Event ID: 24
Date: 06/02/2006
Time: 7:42:00 AM
User: N/A
Computer: TERRY
Description:
Event provider attempted to register query “SELECT * FROM __InstanceCreationEvent WHERE TargetInstance ISA “MPSSVC_Notification” ” whose target class “MPSSVC_Notification” does not exist. The query will be ignored.

The Total Solution (Thanks To terry1 From forums.microsoft.com)

Simply open your favorite text editor and copy the code below:

[code]#pragma namespace(“\\\\.\\root\\cimv2”)

#pragma deleteclass(“MPSSVC_Agent”, NOFAIL)
#pragma deleteclass(“MPSSVC_Policy”, NOFAIL)
#pragma deleteclass(“MPSSVC_Notification”, NOFAIL)
#pragma deleteclass(“MPSSVC_Application”, NOFAIL)

#pragma deleteinstance(“__EventProviderRegistration.provider=’\\\\.\\root\\cimv2:__Win32Provider.Name=\”MPSSVC_Provider\”‘”, NOFAIL)
#pragma deleteinstance(“__MethodProviderRegistration.provider=’\\\\.\\root\\cimv2:__Win32Provider.Name=\”MPSSVC_Provider\”‘”, NOFAIL)
#pragma deleteinstance(“__InstanceProviderRegistration.provider=’\\\\.\\root\\cimv2:__Win32Provider.Name=\”MPSSVC_Provider\”‘”, NOFAIL)
#pragma deleteinstance(“__Win32Provider.Name=’MPSSVC_Provider'”, NOFAIL)[/code]

Now save the file as: MPSSvc_Uninstall.mof (Save To Your Desktop)

Now click start then run and then type in cmd and push enter. This launches the command prompt.

Simply type in this command and push enter:

Mofcomp “%UserProfile%\Desktop\MPSSvc_Uninstall.mof”

Now reboot your computer and check the event viewer. No more WOC errors. (Of Course Assuming You Deleted All The Old Errors Before Rebooting)

Update (March, 28th 2006):

If for some reason Mofcomp.exe is missing on your system then try downloading the above file and put in your “%windir%\system32\wbem\” folder.

Take Care,

Will

2 thoughts on “Windows One Care Event ID 24 Fix”

  1. Don’t know what I am doing wrong, every time I try this fix all I get is the following message; Mofcomp is not recognized as an internal or external command, operable program or batch file. O/S is Win XP Pro

Comments are closed.