I’m upgrading .NET (legacy 4.*) applications on multiple unfamiliar servers. This includes needing to know if the currently installed framework meets my requirements. Instead of fumbling through the actual registry, I can pasted this C# snippet into a console app and all is good: