Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix windows registry editing task #21

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

m3gat0nn4ge
Copy link

The windows registry edits were failing:

" "msg": "failed to create registry key at HKLM:\\SYSTEM\\CurrentControlSet\\Services\\SNMP\\Parameters\\ValidCommunities: Exception calling "CreateSubKey" with "1" argument(s): "The specified path is invalid.\r\n"",
"
Removing the excess backslashes resolves the issue:

{ "ansible_loop_var": "item", "_ansible_no_log": false, "data_type_changed": false, "data_changed": true, "item": { "path": "PermittedManagers", "type": "string", "name": "1", "data": "0.0.0.0" }, "changed": true, "_ansible_item_label": { "path": "PermittedManagers", "type": "string", "name": "1", "data": "0.0.0.0" } }

@duviful
Copy link

duviful commented Apr 23, 2021

I've tested this change and it works fine on a Windows server 2019

@Tyneven Tyneven mentioned this pull request Jan 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants