I have a list of installed software, obtained from WMI class select * from Win32_Product
.
I'd like to deny execution rights for some users on certain software like so:
- find the
path to installed software
- recursively remove execution rights
I find the path to installed software
from Win32_Product InstallLocation column. But the PROBLEM is that not all rows in Win32_Product have a value for InstallLocation. What can I do to overcome this? Is there somewhere in registry where I can find this path?