# Error creating Cluster on windows 2012 R2 Server through Ansible

**URL:** <https://forum.ansible.com/t/error-creating-cluster-on-windows-2012-r2-server-through-ansible/23106>\
**Category:** Ansible Project\
**Tags:** windows\
**Created:** [November 26, 2016, 5:29am UTC](https://forum.ansible.com/t/error-creating-cluster-on-windows-2012-r2-server-through-ansible/23106 "2016-11-26T05:29:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ashish\_chanda](https://avatars.discourse-cdn.com/v4/letter/a/3ab097/32.png) [@ashish\_chanda](https://forum.ansible.com/u/ashish_chanda)\
**Post date:** [November 26, 2016, 5:29am UTC](https://forum.ansible.com/t/error-creating-cluster-on-windows-2012-r2-server-through-ansible/23106/1 "2016-11-26T05:29:11Z")

</div>

Hi,

I am using ansible to create Cluster on windows 2012 R2 Server where i am getting issues like

# access denied on new cluster command on adding the second node to the cluster.#

# I am using kerberos authentication since i needed to login using domain account as opposed to local account. Also i am using PYWINRM to connect.#

# s = winrm.Session(‘192.X.X.X’,auth=(‘Administrator@CORP.LOCAL’, ‘anything’), transport=‘kerberos’)r = s.run\_ps(“”“New-Cluster -Name mycluster -Node firstcomputer.CORP.LOCAL,secondcomputer.CORP.LOCAL -StaticAddress 192.X.X.X”“”)

Please help.

Thanks,  
Ashish

---

<div class="post-metadata">

**Author:** ![j.r.hawkesworth](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@j.r.hawkesworth](https://forum.ansible.com/u/j.r.hawkesworth)\
**Post date:** [November 29, 2016, 8:44am UTC](https://forum.ansible.com/t/error-creating-cluster-on-windows-2012-r2-server-through-ansible/23106/2 "2016-11-29T08:44:36Z")

</div>

Hello,

I think you need to allow delegation of credentials in order to avoid the ‘second hop’ issue. See my answer here: [https://groups.google.com/forum/#!topic/ansible-project/BbKicPxQztI](https://groups.google.com/forum/#!topic/ansible-project/BbKicPxQztI)

Hope this helps,

Jon
