DSC Registry resource not working as expected

This topic contains 2 replies, has 3 voices, and was last updated by Profile photo of Jeremy Murrah Jeremy Murrah 9 months, 1 week ago.

  • Author
    Posts
  • #35938
    Profile photo of Ed O'Connor
    Ed O’Connor
    Participant

    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

  • #35939
    Profile photo of Don Jones
    Don Jones
    Keymaster

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

  • #35947
    Profile photo of Jeremy Murrah
    Jeremy Murrah
    Participant

    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.