Is there a log file or registry path or script that will tell me any / all .Net versions installed on a server (2012 R2)? I have a need to see if .Net 4.6 was ever installed but when I run the following it jumps versions and I can't tell if 4.6 was installed:
ls -r 'HKLM:\software\microsoft\NET Framework Setup\NDP\v*' | foreach { $_.getValue('Version') } | sort -unique 2.0.50727.4927 3.0.30729.4926 3.0.4506.4926 3.0.6920.4902 3.5.30729.4926 4.0.0.0 4.7.02558
Thoughts please?