Solved

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

Posted on 2014-09-19
4
387 Views
Last Modified: 2014-09-19
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
Comment
Question by:Varshini S
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 16

Assisted Solution

by:Dale Harris
Dale Harris earned 250 total points
ID: 40332829
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
 

Author Comment

by:Varshini S
ID: 40332872
In the registry I can see only
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\v4.0.30319
0
 
LVL 16

Expert Comment

by:Dale Harris
ID: 40332877
Look inside that key.  There should be some indicators.
0
 
LVL 40

Accepted Solution

by:
footech earned 250 total points
ID: 40332961
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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
Previously, on our Nano Server Deployment series, we've created a new nano server image and deployed it on a physical server in part 2. Now we will go through configuration.
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question