# Ansible for windows

**URL:** <https://forum.ansible.com/t/ansible-for-windows/31942>\
**Category:** Ansible Project\
**Tags:** windows\
**Created:** [January 9, 2020, 3:03pm UTC](https://forum.ansible.com/t/ansible-for-windows/31942 "2020-01-09T15:03:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arjan\_Goos](https://avatars.discourse-cdn.com/v4/letter/a/54ee81/32.png) [@Arjan\_Goos](https://forum.ansible.com/u/Arjan_Goos)\
**Post date:** [January 9, 2020, 3:03pm UTC](https://forum.ansible.com/t/ansible-for-windows/31942/1 "2020-01-09T15:03:27Z")

</div>

Hi,

Is it possible to create itemType Junction (symbolic link) .

I want something like this:

New-Item -ItemType Junction -Path D:\Program-Files\website-Name conf -Target D:\Data\Website\conf

Groeten,

Arjan

---

<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:** [January 12, 2020, 11:01am UTC](https://forum.ansible.com/t/ansible-for-windows/31942/2 "2020-01-12T11:01:25Z")

</div>

If i recall correctly the win\_file module doesn’t yet support links (pull requests welcome).

However, you can probably run this via the ansible win\_shell or script module

[https://docs.ansible.com/ansible/latest/modules/script\_module.html](https://docs.ansible.com/ansible/latest/modules/script_module.html)

[https://docs.ansible.com/ansible/latest/modules/win\_shell\_module.html](https://docs.ansible.com/ansible/latest/modules/win_shell_module.html)

If you want to make the command re-runnable you can probably use the win\_stat module to see if the file exists / is a link, register the result and only run your command above if needed.

[https://docs.ansible.com/ansible/latest/modules/win\_stat\_module.html](https://docs.ansible.com/ansible/latest/modules/win_stat_module.html)

Hope this helps,

Jon
