# win\_security\_policy and Registry Values failing

**URL:** <https://forum.ansible.com/t/win-security-policy-and-registry-values-failing/36080>\
**Category:** Ansible Project\
**Created:** [December 8, 2021, 9:54am UTC](https://forum.ansible.com/t/win-security-policy-and-registry-values-failing/36080 "2021-12-08T09:54:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![paul\_harford](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/paul_harford/32/3160_2.png) [@paul\_harford](https://forum.ansible.com/u/paul_harford)\
**Post date:** [December 8, 2021, 9:54am UTC](https://forum.ansible.com/t/win-security-policy-and-registry-values-failing/36080/1 "2021-12-08T09:54:41Z")

</div>

hey Ansible group  
we are trying to set a registry value using win\_security\_policy

- name: Strong Session Key

win\_security\_policy:

section: Registry Values

key: RequireStrongKey

any value we try to set using Registry Values fails with the

Failed to import secedit.ini file from C:\Users\

anyone seen this before ?

the code works for other sections like system access and event audit without issue just the Registry Values sections fail

thanks  
Paul
