This is a long shot.
Trying to use the script, but get the following error message running this command
.\Set-WMINamespaceSecurity.ps1 -namespace root/cimv2 -account "LABBY\ben.test2" -operation add -permissions Enable -allowInherit $true
Set-WmiNamespaceSecurity.ps1: The property 'DACL' cannot be found on this object. Verify that the property exists and can be set.
Any thoughts why?