Detecting .NET 4.0 Remotely

While preparing to deploy an internal application I started to wonder if all of the workstations were properly configured – after a quick search I found a number of methods for detecting the .NET framework locally, but I didn’t find any clean options that worked remotely.

Thankfully I found a post with a few detection methods, one of which was using WMI from VBScript – which gave me the inspiration I needed:

I pulled up LINQPad and whipped up a quick script to check for both the Client Profile and full (extended) version on a list of computers. Hopefully it’ll be of some use others.

One thing to note, is that you do need Administrator permissions on the remote workstations.