# How do you connect to a windows host?

**URL:** <https://forum.ansible.com/t/how-do-you-connect-to-a-windows-host/35074>\
**Category:** AWX Project\
**Tags:** windows\
**Created:** [April 27, 2021, 9:39pm UTC](https://forum.ansible.com/t/how-do-you-connect-to-a-windows-host/35074 "2021-04-27T21:39:53Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brandon\_Ellis](https://avatars.discourse-cdn.com/v4/letter/b/dec6dc/32.png) [@Brandon\_Ellis](https://forum.ansible.com/u/Brandon_Ellis)\
**Post date:** [April 27, 2021, 9:39pm UTC](https://forum.ansible.com/t/how-do-you-connect-to-a-windows-host/35074/1 "2021-04-27T21:39:53Z")

</div>

I’ve got kerberos setup. I’ve got a client computer on the domain. The client has a host of name “COMPUTER-NAME@DOMAIN.NAME”. I have credentials of form “ACCOUNT@DOMAIN.NAME”

I try running a simple playbook. I get the error “'Server not found in Kerberos database”

What else do I need to do for my computer to connect? What am I doing wrong?

---

<div class="post-metadata">

**Author:** ![Jesse\_Harris](https://avatars.discourse-cdn.com/v4/letter/j/e68b1a/32.png) [@Jesse\_Harris](https://forum.ansible.com/u/Jesse_Harris)\
**Post date:** [April 29, 2021, 2:53am UTC](https://forum.ansible.com/t/how-do-you-connect-to-a-windows-host/35074/2 "2021-04-29T02:53:10Z")

</div>

Not 100% sure you need it, but do you have a krb5.conf file setup for your domain?

With our AWX docker setup, I manually put this into /etc/ in the awx-task container:

[libdefaults]  
default\_realm = DOMAIN.NAME

[realms]

# use “kdc = …” if realm admins haven’t put SRV records into DNS

DOMAIN.NAME = {  
admin\_server = dc01.domain.name  
}

[domain\_realm]  
domain.name = DOMAIN.NAME

[logging]

# kdc = CONSOLE

---

<div class="post-metadata">

**Author:** ![Brandon\_Ellis](https://avatars.discourse-cdn.com/v4/letter/b/dec6dc/32.png) [@Brandon\_Ellis](https://forum.ansible.com/u/Brandon_Ellis)\
**Post date:** [April 29, 2021, 3:27pm UTC](https://forum.ansible.com/t/how-do-you-connect-to-a-windows-host/35074/3 "2021-04-29T15:27:47Z")

</div>

Yes, it’s configured. I can kinit successfully and get my TGT, but I can’t connect directly to any hosts for some reason…

---

<div class="post-metadata">

**Author:** ![Mike\_Charchuk](https://avatars.discourse-cdn.com/v4/letter/m/e47774/32.png) [@Mike\_Charchuk](https://forum.ansible.com/u/Mike_Charchuk)\
**Post date:** [April 29, 2021, 4:10pm UTC](https://forum.ansible.com/t/how-do-you-connect-to-a-windows-host/35074/4 "2021-04-29T16:10:23Z")

</div>

Have you checked this link out  
[https://docs.ansible.com/ansible/latest/user\_guide/windows\_winrm.html](https://docs.ansible.com/ansible/latest/user_guide/windows_winrm.html)

---

<div class="post-metadata">

**Author:** ![Jose\_Osorio\_R](https://avatars.discourse-cdn.com/v4/letter/j/d07c76/32.png) [@Jose\_Osorio\_R](https://forum.ansible.com/u/Jose_Osorio_R)\
**Post date:** [April 30, 2021, 8:52am UTC](https://forum.ansible.com/t/how-do-you-connect-to-a-windows-host/35074/5 "2021-04-30T08:52:11Z")

</div>

Hello,

Could you share your playbook? Did you try to connect by basic (local account) or (ntlm)?

if you can, share the output of the command ‘get-aduser ’

Also share this output from the windows server target machine:

winrm get winrm/config

regards

Jose Osorio

---

<div class="post-metadata">

**Author:** ![Alex\_Shishko](https://avatars.discourse-cdn.com/v4/letter/a/e95f7d/32.png) [@Alex\_Shishko](https://forum.ansible.com/u/Alex_Shishko)\
**Post date:** [June 8, 2021, 8:50am UTC](https://forum.ansible.com/t/how-do-you-connect-to-a-windows-host/35074/6 "2021-06-08T08:50:53Z")

</div>

Hello. It for you [https://youtu.be/VPzijklu8x0](https://youtu.be/VPzijklu8x0)

среда, 28 апреля 2021 г. в 00:39:54 UTC+3, bel…@umbc.edu:
