Module Version: 3.0.0
Puppet Version: v2019.2.0
OS Name/Version: Windows 2012 R2
I have a Puppet class that manages a specific registry key. On some servers I get the below error when I run Puppet:
Could not evaluate: ReportEventW failed to report event to Windows eventlog: A device attached to the system is not functioning.
After digging more into the error I found that the actual value that exists inside this registry key is a very long string value. And with some research I found that the actual cause of this error is that when Puppet tries to send this value to Windows EventViewer, then this error happens because Windows EventViewer is unable to receive such long string value in one chunk.
I believe this error is similar to these ones:
Registry module should be able to set the registry key value (using registry_value resource) regardless of the size of the current value inside this registry key.
Please take a moment and attach any relevant log output and/or manifests. This will help us immensely when troubleshooting the issue.