Hello,
I used this package for deployment, but below are the validations and the script.vbs to fix this AV issue.
Correction address:
https://community.spiceworks.com/t/check-the-wmi-repository-for-an-antivirus-product-that-is-not-ins...
Validation 1
Stop the service, remove or rename the folder, and start the service.
net stop winmgmt /y
ren %windir%\System32\wbem\Repository Repository.old
net start winmgmt
The device needs to be restarted to normalize the registry.
Validation 2
Manual - run wbemtest
in cmd
Connect to the namespace root\SecurityCenter2
Enumerate the superclass instance AntivirusProduct
Remove the registry {XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}
There is a script below in VBS that allows deletion by searching for the AV name.
strPC = "."
Set objWMIService = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & _
strPC & "\root\SecurityCenter2")
Set colAV = objWMIService.ExecQuery("Select * from AntiVirusProduct")
For Each objItem In colAV
If InStr(objItem.displayName, "AV Name") > 0 Then
objItem.Delete_
End If
Next