Hello!

Continuing on with our daily PowerShell Advent Calendar Extravaganza, this script here will return the current .NET version installed on the machine. You can either choose to add the target .NET version or not. If you add a .NET version number and at least that version isn’t on the machine, the script will throw an error, but will continue to run and return the PSObject, unless you set the “ErrorAction” to “Stop”.