DSC Registry resource not working as expected

I have two Registry keys I am trying to set via the Registry resource that are having issues:

  1. The values are not being set as defined
  2. Even though the values are not set as defined ‘test-dscconfiguration’ shows as ‘true’
    #Disable automatic updates
        Registry AUOptions
        {
            Ensure = "Present"
            Key = "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update"
            ValueName = "AUOptions"
            ValueType = "DWord"
            ValueData = "2"
        }
    #Disable automatic updates
        Registry AUOptionsNAU
        {
            Ensure = "Present"
            Key = "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU"
            ValueName = "NoAutoUpdate"
            ValueType = "DWord"
            ValueData = "1"
        }

The values provided are valid entries for these keys. Has anyone seen anything like this?

Thanks,
Ed

Have you enabled a diagnostic on the node, and looked through the log to see what it thinks it’s doing?

dumb question but you don’t have a GPO out there setting those values do you? I only ask because that is something I would do, and bang my head on for weeks before figuring that out.