windows modules; strict mode; use of Latest

Following on from the discussion here 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: https://technet.microsoft.com/en-us/library/hh849692.aspx

I second that.

Sorry for delay, PR created for this now:

https://github.com/ansible/ansible/pull/12657

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

Thanks

Jon