daily pastebin goal
14%
SHARE
TWEET

get installed .NET versions.ps1

ibi Jan 29th, 2016 (edited) 410 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ls "hklm:\SOFTWARE\Microsoft\NET Framework Setup\NDP" | clip | notepad
  2. # press ctrl-v once notepad opens. :)
  3.  
  4. # alternate version:
  5. ls "hklm:\SOFTWARE\Microsoft\NET Framework Setup\NDP" >$env:temp\dotnet_ver.txt
  6. ls "hklm:\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full" >>$env:temp\dotnet_ver.txt
  7. notepad $env:temp\dotnet_ver.txt
RAW Paste Data
Top