Solved

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

Posted on 2014-09-19
4
394 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Create and license users in Office 365 in bulk based on a CSV file. A step-by-step guide with PowerShell script examples.
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…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

726 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