Solved

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

Posted on 2014-09-19
4
386 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
  • 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 39

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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

In this previous article (https://oddytee.wordpress.com/2016/05/05/provision-new-office-365-user-and-mailbox-from-exchange-hybrid-via-powershell/), we made basic license assignments to users in O365. When I say basic, the method is the simplest way …
The following article is intended as a guide to using PowerShell as a more versatile and reliable form of application detection in SCCM.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

790 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