Unless all keys have the exact same values, you will not be able to collect them via CM. if they are all exactly the same values then you can follow the add remove programs example.
How to collect dynamic registry values using MOF
Hey all!
I am trying to build a report by collecting all registry values located under a particular registry key using SCCM MOF files. The issue I am facing is that we have a script that runs in our environment and from time to time it will create additional string values under the key in question. Is there a way I can use MOF to collect the new values without having to edit MOF code? I tried using the RegKeyToMof tool to no avail. I'm wondering if anyone else ran into this situation and can provide any guidance here?
1 additional answer
Sort by: Most helpful
-
Amandayou-MSFT 11,046 Reputation points
2021-10-08T08:40:00.37+00:00 Hi @Gulbir Sekhon ,
It may not collect dynamic registry values using MOF, the MOF code is edited by SCCM, if we change the code that has been written, it maybe cause confusion. If the values are static, we could run some query to achieve it.
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.