Member-only story

Check Registry .NET Framework versions on Windows-like systems — Ansible module win_reg_stat

How to automate the check of the .NET Framework version installed in the Windows-like machine using the Windows Registry with Ansible Playbook.

Luca Berton
4 min readMar 16, 2022

How to Check the .NET Framework version on Windows-like systems with Ansible?

The principle is to read the right Windows Registry key, store in a variable, and display it on the screen.

I’m going to show you a live demo and some simple Ansible code.

I’m Luca Berton and welcome to today’s episode of Ansible Pilot

Ansible read Windows Registry

  • `ansible.windows.win_reg_stat`
  • Get information about Windows registry keys

Today we’re talking about the Ansible module `win_reg_stat`.

The full name is `ansible.windows.win_reg_stat`, which means that is part of the collection of modules specialized to interact with Windows target host.

--

--

Luca Berton
Luca Berton

Written by Luca Berton

I help creative Automation DevOps, Cloud Engineer, System Administrator, and IT Professional to succeed with Ansible Technology to automate more things everyday

No responses yet