Other Configuration Manager-related features and issues
Hi, @Philip George
Thank you for posting in Microsoft Q&A forum.
According to the error message, it seems the 7 line has a syntax problem.
The 7 line should be:
[SMS_Report(TRUE)] Uint32 Update{8A69D345_D564_463C_AFF1_A69D9E530F96};
I guess the curly brackets caused the issue, you may changed it to:
[SMS_Report(TRUE)] Uint32 Update;
And change [SMS_Report(TRUE)] String TargetVersionPrefix{8A69D345_D564_463C_AFF1_A69D9E530F96}; to [SMS_Report(TRUE)] String TargetVersionPrefix;
And change the corresponding part in instance section.
Configuration Mof
pragma namespace (\.\root\cimv2)
pragma deleteclass("GoogleUpdate", NOFAIL)
[DYNPROPS]
Class GoogleUpdate
{
[key] string KeyName;
Uint32 Update;
Uint32 AutoUpdateCheckPeriodMinutes;
Uint32 UpdateDefault;
String TargetVersionPrefix;
};
[DYNPROPS]
Instance of GoogleUpdate
{
KeyName="RegKeyToMOF";
[PropertyContext("Local|HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Update|Update{8A69D345-D564-463C-AFF1-A69D9E530F96}"),Dynamic,Provider("RegPropProv")] Update;
[PropertyContext("Local|HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Update|AutoUpdateCheckPeriodMinutes"),Dynamic,Provider("RegPropProv")] AutoUpdateCheckPeriodMinutes;
[PropertyContext("Local|HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Update|UpdateDefault"),Dynamic,Provider("RegPropProv")] UpdateDefault;
[PropertyContext("Local|HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Update|TargetVersionPrefix{8A69D345-D564-463C-AFF1-A69D9E530F96}"),Dynamic,Provider("RegPropProv")] TargetVersionPrefix;
};
SMS_MOF
pragma namespace (\.\root\cimv2\SMS)
pragma deleteclass("GoogleUpdate", NOFAIL)
[SMS_Report(TRUE),SMS_Group_Name("GoogleUpdate"),SMS_Class_ID("GoogleUpdate")]
Class GoogleUpdate: SMS_Class_Template
{
[SMS_Report(TRUE),key] string KeyName;
[SMS_Report(TRUE)] Uint32 Update;
[SMS_Report(TRUE)] Uint32 AutoUpdateCheckPeriodMinutes;
[SMS_Report(TRUE)] Uint32 UpdateDefault;
[SMS_Report(TRUE)] String TargetVersionPrefix;
};
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
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.