# Anyone working on windows facts?

**URL:** <https://forum.ansible.com/t/anyone-working-on-windows-facts/16072>\
**Category:** Ansible Developer\
**Tags:** windows\
**Created:** [August 29, 2014, 2:24pm UTC](https://forum.ansible.com/t/anyone-working-on-windows-facts/16072 "2014-08-29T14:24:40Z")\
**Posts on this page:** 9\
**Page:** 1

<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:** [August 29, 2014, 2:24pm UTC](https://forum.ansible.com/t/anyone-working-on-windows-facts/16072/1 "2014-08-29T14:24:40Z")

</div>

I’ve starting working on adding some extra facts for windows hosts.

So far I have one for the installed powershell version and another to report when the certificate (created by Trond’s setup script) will expire.

Anyone got any other suggestions of things they want while I’m working on it?

Many thanks

Jon

---

<div class="post-metadata">

**Author:** ![sivel](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/sivel/32/1198_2.png) [@sivel](https://forum.ansible.com/u/sivel)\
**Post date:** [August 29, 2014, 3:39pm UTC](https://forum.ansible.com/t/anyone-working-on-windows-facts/16072/2 "2014-08-29T15:39:36Z")

</div>

There are currently 2 pull requests for win\_setup:

- #8812 [win\_json\_facts\_setup\_improvements; All changes referenced in PRs #8767 , #8768 , #8769](https://github.com/ansible/ansible/pull/8812) ([trondhindenes](https://github.com/ansible/ansible/pulls/trondhindenes))
- #8767 [Win setup gather more facts](https://github.com/ansible/ansible/pull/8767) ([trondhindenes](https://github.com/ansible/ansible/pulls/trondhindenes))

---

<div class="post-metadata">

**Author:** ![Trond\_Hindenes](https://avatars.discourse-cdn.com/v4/letter/t/96bed5/32.png) [@Trond\_Hindenes](https://forum.ansible.com/u/Trond_Hindenes)\
**Post date:** [August 29, 2014, 5:16pm UTC](https://forum.ansible.com/t/anyone-working-on-windows-facts/16072/3 "2014-08-29T17:16:58Z")

</div>

THey are essentially the same. 8767 is a PR where I managed to include some merge commits, so 8812 is the new version of it.

I have a PR (the same PR, really) in for supporting deeper levels of json “nesting”, which will allow us to do a lot more around windows facts.

---

<div class="post-metadata">

**Author:** ![Chris\_Church1](https://avatars.discourse-cdn.com/v4/letter/c/ac8455/32.png) [@Chris\_Church1](https://forum.ansible.com/u/Chris_Church1)\
**Post date:** [August 29, 2014, 7:57pm UTC](https://forum.ansible.com/t/anyone-working-on-windows-facts/16072/4 "2014-08-29T19:57:33Z")

</div>

I just merged Trond's pull request below.

Jon -- There are no other pull requests related to Windows facts, so submit  
yours when you're ready.

---

<div class="post-metadata">

**Author:** ![Trond\_Hindenes](https://avatars.discourse-cdn.com/v4/letter/t/96bed5/32.png) [@Trond\_Hindenes](https://forum.ansible.com/u/Trond_Hindenes)\
**Post date:** [August 29, 2014, 9:21pm UTC](https://forum.ansible.com/t/anyone-working-on-windows-facts/16072/5 "2014-08-29T21:21:47Z")

</div>

A powershell version fact is a great idea!

---

<div class="post-metadata">

**Author:** ![Peter\_Mounce](https://avatars.discourse-cdn.com/v4/letter/p/22d042/32.png) [@Peter\_Mounce](https://forum.ansible.com/u/Peter_Mounce)\
**Post date:** [August 29, 2014, 10:28pm UTC](https://forum.ansible.com/t/anyone-working-on-windows-facts/16072/6 "2014-08-29T22:28:45Z")

</div>

How about installed programs and their versions and install dates?

---

<div class="post-metadata">

**Author:** ![Trond\_Hindenes](https://avatars.discourse-cdn.com/v4/letter/t/96bed5/32.png) [@Trond\_Hindenes](https://forum.ansible.com/u/Trond_Hindenes)\
**Post date:** [August 29, 2014, 10:32pm UTC](https://forum.ansible.com/t/anyone-working-on-windows-facts/16072/7 "2014-08-29T22:32:08Z")

</div>

Hmm, that would possibly slow it down considerably.

I’m thinking the windows facts should be inline with the linux facts (not 1-to-1 but at least ballpark).

---

<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:** [August 30, 2014, 7:51pm UTC](https://forum.ansible.com/t/anyone-working-on-windows-facts/16072/8 "2014-08-30T19:51:05Z")

</div>

Thanks everyone, PR [https://github.com/ansible/ansible/pull/8824](https://github.com/ansible/ansible/pull/8824) created.

All the best,

Jon

---

<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:** [September 1, 2014, 8:56pm UTC](https://forum.ansible.com/t/anyone-working-on-windows-facts/16072/9 "2014-09-01T20:56:51Z")

</div>

Just to say I’ve revised this a bit following feedback from Trond Hindenes, new PR is [https://github.com/ansible/ansible/pull/8847](https://github.com/ansible/ansible/pull/8847)

All the best,

Jon
