Could you please update your script to cover 4.7.2 detection? $45Table = [Ordered] @{ 461814 = '4.7.2' 461808 = '4.7.2 on Windows 10' 461310 = '4.7.1' ...
its easier :) $dotnet= Get-ChildItem 'HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP' -recurse | Get-ItemPropert y -name Version, Release -EA SilentlyContinu e | Where { $_.PSChildNam e -match '^(?![SW])\p{L} ' -and $_.Release -ne $null} $dotnet.Version $dotnetversion