document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. Get-ChildItem \'HKLM:\\SOFTWARE\\Microsoft\\NET Framework Setup\\NDP\' -recurse |
  2. Get-ItemProperty -name Version,Release -EA 0 |
  3. Where { $_.PSChildName -match \'^(?!S)\\p{L}\'} |
  4. Select PSChildName, Version, Release, @{
  5.   name="Product"
  6.   expression={
  7.       switch -regex ($_.Release) {
  8.         "378389" { [Version]"4.5" }
  9.         "378675|378758" { [Version]"4.5.1" }
  10.         "379893" { [Version]"4.5.2" }
  11.         "393295|393297" { [Version]"4.6" }
  12.         "394254|394271" { [Version]"4.6.1" }
  13.         "394802|394806" { [Version]"4.6.2" }
  14.         {$_ -gt 394806} { [Version]"Undocumented 4.6.2 or higher, please update script" }
  15.       }
  16.     }
  17. }
');