This is what I came up with using regkeytomof that I think matches your instructions Sherry, but when I add it to configuration.mof I get a parsing error in dataldr.log and it automatically reverts to the previous version, is there something I missed?
#pragma namespace ("\\\\.\\root\\cimv2") #pragma deleteclass("HotFix", NOFAIL) [DYNPROPS] Class HotFix { [key] string KeyName; String AppVersion; }; [DYNPROPS] Instance of HotFix { KeyName="RegKeyToMOF_32"; [PropertyContext("Local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Wow6432Node\\SoftwareVendor\\HotFix|App Version"),Dynamic,Provider("RegPropProv")] AppVersion; }; Thanks for taking a look at this. From: listsad...@lists.myitforum.com [mailto:listsad...@lists.myitforum.com] On Behalf Of Sherry Kissinger Sent: Friday, May 05, 2017 11:15 AM To: mssms@lists.myitforum.com Subject: Re: [mssms] Is it possible to inventory registry values that have a space in the value name? Yes, easily. when you do your configuration.mof edit part, for the line of "where to get that registry key" it'll be something like this: [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\SoftwareVendor\\HotFix|App Version"),Dynamic,Provider("RegPropProv")] SftVendrAppVersion; and in the section in configuration.mof, it'll be something like this... { ...otherstuff... string SftVendrAppVersion; }; You see what you did there? what you are 'asking for" is within the PropertryContext(" Regkey Here" ). after the ] you can LABEL it whatever you want. that's just a label. Sure, you need to make sure that label matches elsewhere in the configuration.mof, and it's what the column will be called in the table and the view--so whatever you choose to name that label you want to like what you call it. But you can label it "FuzzyBunnySlippers" and it'll work just fine. It's just a label. On Fri, May 5, 2017 at 11:21 AM, Atkinson, Matt T <matt.atkin...@providence.org<mailto:matt.atkin...@providence.org>> wrote: Hi All, Can’t seem to figure out what mof syntax is needed to inventory this registry value: [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\SoftwareVendor\HotFix] "App Version"="6" I generally just use regkeytomof to generate the mof files, but if I try with that value it automatically removes the space in the value name. If I add it back in manually, the dataldr rejects it for invalid syntax. If anyone can give me some pointers I would appreciate it. Matt Atkinson ________________________________ This message is intended for the sole use of the addressee, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the addressee you are hereby notified that you may not use, copy, disclose, or distribute to anyone the message or any information contained in the message. If you have received this message in error, please immediately advise the sender by reply email and delete this message. -- Thank you, Sherry Kissinger My Parameters: Standardize. Simplify. Automate Blogs: http://www.mofmaster.com<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.mofmaster.com&d=DwMFaQ&c=KoC5GYBOIefzxGAm2j6cjFf-Gz7ANghQIP9aFG9DuBs&r=soSV4sa7TECUyxN0Fl352ve7Wn6M29PPWQ0aGSVVYvs&m=UJrGKbsvGCjvT3JPflmu39eBreVMYTadGIHfgPM6018&s=JeYTfUwe7D_wmFaDIH68zaAl-TWxWh4MJ8nhNn9Mjr0&e=>, http://mnscug.org/blogs/sherry-kissinger<https://urldefense.proofpoint.com/v2/url?u=http-3A__mnscug.org_blogs_sherry-2Dkissinger&d=DwMFaQ&c=KoC5GYBOIefzxGAm2j6cjFf-Gz7ANghQIP9aFG9DuBs&r=soSV4sa7TECUyxN0Fl352ve7Wn6M29PPWQ0aGSVVYvs&m=UJrGKbsvGCjvT3JPflmu39eBreVMYTadGIHfgPM6018&s=xk2zwLFI9vBDt8vwuyA5BGLFbyEoYsPHI3PScX4sHQ0&e=>, http://www.smguru.org<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.smguru.org&d=DwMFaQ&c=KoC5GYBOIefzxGAm2j6cjFf-Gz7ANghQIP9aFG9DuBs&r=soSV4sa7TECUyxN0Fl352ve7Wn6M29PPWQ0aGSVVYvs&m=UJrGKbsvGCjvT3JPflmu39eBreVMYTadGIHfgPM6018&s=VWJU8aZNgDjaVh5ZLQKLWd1QS3Fm8pho6NXmUx6zBnk&e=> ________________________________ This message is intended for the sole use of the addressee, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the addressee you are hereby notified that you may not use, copy, disclose, or distribute to anyone the message or any information contained in the message. If you have received this message in error, please immediately advise the sender by reply email and delete this message.