# Sensitive parameters in windows modules

**URL:** <https://forum.ansible.com/t/sensitive-parameters-in-windows-modules/24448>\
**Category:** Ansible Developer\
**Tags:** windows\
**Created:** [May 10, 2017, 2:15pm UTC](https://forum.ansible.com/t/sensitive-parameters-in-windows-modules/24448 "2017-05-10T14:15:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael\_Perzel](https://avatars.discourse-cdn.com/v4/letter/m/8491ac/32.png) [@Michael\_Perzel](https://forum.ansible.com/u/Michael_Perzel)\
**Post date:** [May 10, 2017, 2:15pm UTC](https://forum.ansible.com/t/sensitive-parameters-in-windows-modules/24448/1 "2017-05-10T14:15:20Z")

</div>

In linux modules you can specify a parameter as no\_log like this:

module = AnsibleModule(  
argument\_spec = dict(  
host=dict(default=“localhost”),  
user=dict(required=True),  
password=dict(required=True, no\_log=True),  
)  
)

Is there an equivalent for windows modules? We have a module that installs certificates but currently the password is included in the stdout. We aggregate our ansible logs so this isn’t really acceptable for our use case. I took a look at

[https://github.com/ansible/ansible/blob/devel/lib/ansible/module\_utils/powershell.ps1](https://github.com/ansible/ansible/blob/devel/lib/ansible/module_utils/powershell.ps1)  
[https://github.com/ansible/ansible/blob/eb1214baad0cbe2c4b7304caebb9ae1c7dc0d8db/lib/ansible/modules/windows/win\_psexec.ps1](https://github.com/ansible/ansible/blob/eb1214baad0cbe2c4b7304caebb9ae1c7dc0d8db/lib/ansible/modules/windows/win_psexec.ps1)

And don’t see any examples of this. I could no\_log the whole task but then any failure becomes problematic to troubleshoot or return any data.
