# win\_domain: The specified argument 'InstallDNS' was not recognized

**URL:** <https://forum.ansible.com/t/win-domain-the-specified-argument-installdns-was-not-recognized/27641>\
**Category:** Ansible Project\
**Created:** [May 27, 2018, 11:49am UTC](https://forum.ansible.com/t/win-domain-the-specified-argument-installdns-was-not-recognized/27641 "2018-05-27T11:49:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ali\_Khawaja](https://avatars.discourse-cdn.com/v4/letter/a/c0e974/32.png) [@Ali\_Khawaja](https://forum.ansible.com/u/Ali_Khawaja)\
**Post date:** [May 27, 2018, 11:49am UTC](https://forum.ansible.com/t/win-domain-the-specified-argument-installdns-was-not-recognized/27641/1 "2018-05-27T11:49:14Z")

</div>

Hi,

i am creating a domain controller using win\_domain. when i ran the script again, its failing every time on win\_domain command with the following error message.

TASK [Promote server as Domain Controller] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*fatal: [i-07fd743a2ee03efac]: FAILED! =\> {“changed”: false, “module\_stderr”: “Exception calling "Run" with "1" argument(s): "Exception calling "Invoke" with \r\n"0" argument(s): "The running command stopped because the preference variable \r\n"ErrorActionPreference" or common parameter is set to Stop: The specified \r\nargument ‘InstallDNS’ was not recognized.\r\n""\r\nAt line:65 char:5\r\n+ $output = $entrypoint.Run($payload)\r\n+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ \r\n + CategoryInfo : NotSpecified: (🙂 , ParentContainsErrorRecordE \r\n xception\r\n + FullyQualifiedErrorId : ScriptMethodRuntimeException\r\n \r\n”, “module\_stdout”: “”, “msg”: “MODULE FAILURE”, “rc”: 1}
