Uploaded image for project: 'Modules'
  1. Modules
  2. MODULES-3608

64bit Registry Key not changing

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Accepted
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: registry
    • Labels:
      None
    • Environment:

      Windows 10 Pro (domain joined)

    • Template:
    • Epic Link:
    • Team:
      Windows

      Description

      Attempting to change a 64bit registry key with the following code results in the below error

          registry::value { 'AutoRestartShell':
            key   => 'HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon',
            value => 'AutoRestartShell',
            type  => dword,
            data  => "0",
          }
      

      Failed to apply catalog: Parameter path failed on Registry_key[HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]: Munging failed for value "HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon" in class path: uninitialized constant PuppetX::Puppetlabs::Registry::KEY_WOW64_64KEY at /etc/puppet/modules/registry/manifests/value.pp:67
      

      Editing line 5 of registry.rb to be as follows removes the error and changes the appropriate 64bit key.

      KEY_WOW64_64KEY = 0x100
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              awippler Andrew Wippler
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:

                  Zendesk Support