# windows modules; strict mode; use of Latest

**URL:** <https://forum.ansible.com/t/windows-modules-strict-mode-use-of-latest/19391>\
**Category:** Ansible Developer\
**Tags:** windows\
**Created:** [September 30, 2015, 3:34pm UTC](https://forum.ansible.com/t/windows-modules-strict-mode-use-of-latest/19391 "2015-09-30T15:34:24Z")\
**Posts on this page:** 4\
**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:** [September 30, 2015, 3:34pm UTC](https://forum.ansible.com/t/windows-modules-strict-mode-use-of-latest/19391/1 "2015-09-30T15:34:24Z")

</div>

Following on from the discussion here [temporarily disable strictmode by trondhindenes · Pull Request #12525 · ansible/ansible · GitHub](https://github.com/ansible/ansible/pull/12525) its clear that strict mode is here to stay for powershell based modules.

I’d like to propose that strict mode is set to

### -Version 2.0

rather than

### -Version Latest

Currently the behavior will be the same but I’d prefer to be explicit so that future versions of powershell don’t suddenly stop existing modules from working, and we can plan a migration to a newer version of strict mode.

Info about strict mode here: [Set-StrictMode (Microsoft.PowerShell.Core) - PowerShell | Microsoft Learn](https://technet.microsoft.com/en-us/library/hh849692.aspx)

---

<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:** [September 30, 2015, 8:30pm UTC](https://forum.ansible.com/t/windows-modules-strict-mode-use-of-latest/19391/2 "2015-09-30T20:30:12Z")

</div>

I second that.

---

<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:** [October 7, 2015, 5:31am UTC](https://forum.ansible.com/t/windows-modules-strict-mode-use-of-latest/19391/3 "2015-10-07T05:31:19Z")

</div>

Sorry for delay, PR created for this now:

[https://github.com/ansible/ansible/pull/12657](https://github.com/ansible/ansible/pull/12657)

---

<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:** [October 7, 2015, 8:10pm UTC](https://forum.ansible.com/t/windows-modules-strict-mode-use-of-latest/19391/4 "2015-10-07T20:10:06Z")

</div>

Just to follow up this change has been merged into devel now.

Thanks

Jon
