如何检查。Net framework是否使用power shell或任何编程方式安装在Windows上?我一直在检查path中的注册表项值 HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP 参考下面的链接 https://docs.microsoft.com/en-us/dotnet/framework/migration-guide/how-to-determine-which-versions-are-installed .
最近想出了一个办法。使用PowerShell安装的Net framework版本。
使用下面给定的PowerShell获取。Windows上安装的Net Framework版本:
如何检查。Net framework安装在Windows上
gci âHKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDPâ -recurse | gp -name Version -EA 0 | where { $_.PSChildName -match â^(?!S)\p{L}â} | select PSChildName, Version