Getting Access Denied while creating Cluster on Win2012 R2 using PywinRM

9 views
Skip to first unread message

ashish chanda

unread,
Nov 28, 2016, 7:05:57 PM11/28/16
to Ansible Project
Hi,

I am using Ansible PywinRm to connect and run powershell on the remote windows 2012 R2 server.

I am getting the error 

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


Below are the connection details 
import winrm
s = winrm.Session('192.X.X.X',auth=('administrator@CORP.LOCAL', 'anything'), transport='kerberos')
r = s.run_cmd('ipconfig', ['/all'])   --- works fine
r = s.run_ps("""New-Cluster -Name sqlaagcluster -Node firstcomputer.CORP.LOCAL,secondcomputer.CORP.LOCAL -StaticAddress 192.X.X.X""")    --- access denied on the second computer

Please help.

Thanks,
Ashish 
Reply all
Reply to author
Forward
0 new messages