• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 423
  • Last Modified:

Why .netframework 4.5 not showing when i execute the powershell script ?

I  have installed the .netframework 4.5.2.  But when I execute the following script to verify the .net framework, it is showing the verion 4.0. Why it is not showing 4.5 ?

Script:
gci 'HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP' |
sort pschildname -des                                  |
select -fi 1 -exp pschildname

Output: V4.0
0
Varshini S
Asked:
Varshini S
  • 2
2 Solutions
 
Dale HarrisProfessional Services EngineerCommented:
When you manually check the registry, what does it say?

There should be two entries, one for 4.0 and one for 4.5.  4.5 is an in place update, but it still uses the core 4.0 framework.  As long as the registry says there's an entry for 4.5, you should be fine.
0
 
Varshini SAuthor Commented:
In the registry I can see only
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\v4.0.30319
0
 
Dale HarrisProfessional Services EngineerCommented:
Look inside that key.  There should be some indicators.
0
 
footechCommented:
You have to look at HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4 inside either the Client or Full key (which will depend on what is installed on the machine), and then look at the version entry/property.
For example:
(Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Client" -Name Version).Version

Open in new window

0

Featured Post

Evaluating UTMs? Here's what you need to know!

Evaluating a UTM appliance and vendor can prove to be an overwhelming exercise.  How can you make sure that you're getting the security that your organization needs without breaking the bank? Check out our UTM Buyer's Guide for more information on what you should be looking for!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now