Skip to content

Instantly share code, notes, and snippets.

@thecarlo
Created August 11, 2017 11:53
Show Gist options
  • Save thecarlo/9314b1a7a38a081909712082063d8a74 to your computer and use it in GitHub Desktop.
Save thecarlo/9314b1a7a38a081909712082063d8a74 to your computer and use it in GitHub Desktop.
#the following example checks the value of the Release keyword to determine whether .NET Framework 4.6.2 or higher is installed, regardless of Windows OS version (returning True if it is and False otherwise).
Get-ChildItem "hklm:SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full\" | Get-ItemPropertyValue -Name Release | % { $_ -ge 394802 }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment