DSC Registry resource not working as expected

This topic contains 2 replies, has 3 voices, and was last updated by  Jeremy Murrah 2 years, 4 months ago.

  • Author
  • #35938

    Ed O’Connor

    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?


  • #35939

    Don Jones

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

  • #35947

    Jeremy Murrah

    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.

You must be logged in to reply to this topic.