How to determine local .NET Framework versions via the command prompt

To determine the versions of any .NET Framework packages that are installed, launch an elevated command prompt and use the command below. 

wmic /namespace:\\root\cimv2 path win32_product where "name like 'microsoft%.NET%'" get name, version

net_framework_versions