Deny access to run certain installed software for users

Posted by clyfe on Stack Overflow See other posts from Stack Overflow or by clyfe
Published on 2010-05-06T10:23:36Z Indexed on 2010/05/06 10:28 UTC
Read the original article Hit count: 210

Filed under:
|
|
|
|

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:

  1. find the path to installed software
  2. 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?

© Stack Overflow or respective owner

Related posts about c

    Related posts about c++