通过注册表查看已安装 .NetFramework 版本

gci "hklm:\SOFTWARE\Microsoft\NET Framework Setup\NDP" | % {(Get-ItemProperty registry::$_).PSChildName}


gci "registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP"| % {Get-ItemProperty registry::$_} |Select @{Name="Version";Expression={$_.PSChildName}}

 

http://msdn.microsoft.com/zh-cn/library/hh925568(v=vs.110).aspx

posted on 2014-09-18 09:56  momingliu11  阅读(4882)  评论(0编辑  收藏  举报