Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # CHECK .NET FRAMEWORK VERSION INSTALLED
- $Lookup = ConvertFrom-Csv 'Version|Release
- 4.5|378389
- 4.5.1|378675
- 4.5.1|378758
- 4.5.2|379893
- 4.6|393295
- 4.6|393297
- 4.6.1|394254
- 4.6.1|394271
- 4.6.2|394802
- 4.6.2|394806
- 4.7|460798
- 4.7|460805
- 4.7.1|461308
- 4.7.1|461310
- 4.7.2|461814
- 4.8|528040
- 4.8|528049
- ' -Delimiter "|"
- Get-ChildItem 'HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full' |
- Get-ItemProperty -name Release -EA 0 |
- Select Release, @{
- name = "Product"
- expression = {
- $Lookup | ? Release -eq $_.Release | % Version
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement