dsccommunity / xSCOM

MIT License
17 stars 16 forks source link

Avoid using the Win32_Product WMI class #11

Open johlju opened 6 years ago

johlju commented 6 years ago

This repository has reference to Win32_Product WMI class. As reported in issue https://github.com/PowerShell/DscResources/issues/108, if possible then avoid using the Win32_Product.

If you are using a group policy with the WMIFilter that queries Win32_Product, modify the filter to use Win32reg_AddRemovePrograms ... Win32reg_AddRemovePrograms is a much lighter and effective way to do this, which avoids the calls to do a resiliency check, especially in a locked down environment. So when using Win32reg_AddRemovePrograms we will not be calling on msiprov.dll and will not be initiating a resiliency check. https://support.microsoft.com/en-us/kb/974524

There might not be possible to avoid using it, but for someone to determine that an issue is opened in very repository that has a reference to Win32_Product WMI class.