question

GulbirSekhon-3275 avatar image
0 Votes"
GulbirSekhon-3275 asked GulbirSekhon-3275 commented

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?



windows-10-generalmem-cm-general
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

GarthJones-9654 avatar image
0 Votes"
GarthJones-9654 answered GulbirSekhon-3275 commented

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.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thank you! I looked at the add/remove programs example and we'll redo the way we are currently writing to the registry.

0 Votes 0 ·
Amandayou-MSFT avatar image
0 Votes"
Amandayou-MSFT answered

Hi @GulbirSekhon-3275

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.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.