Wiki

Detecting .NET from the Command Line

This command can take anywhere from 10 seconds to 3 minutes to run, so be patient:

> wmic product where "Name like 'Microsoft .Net%'" get Name, Version
Name                                               Version
Microsoft .NET Framework 4.5.1                     4.5.50938
Microsoft .NET Framework 4.5 Multi-Targeting Pack  4.5.50709
Microsoft .NET Framework 4 Multi-Targeting Pack    4.0.30319
Microsoft .NET Framework 4.5 SDK                   4.5.50709
Microsoft .NET Compact Framework 2.0 SP2           2.0.7045
Microsoft .NET Compact Framework 3.5               3.5.7283

See Also