powershell PowerShell:列出已安装的.NET版本

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了powershell PowerShell:列出已安装的.NET版本相关的知识,希望对你有一定的参考价值。

Get-ChildItem -Path "$($env:WINDIR)\Microsoft.NET\Framework*" | % {Get-ChildItem -Path "$($_.PSPath)" | ? {$_.Name.StartsWith('v') -and $_.PSIsContainer -eq $true -and ((Test-Path -Path "$($_.FullName)\mscorlib.dll" -PathType Leaf) -eq $true)}} | Select @{Name="Version";Expression={$_.Name.TrimStart('v')}},@{Name="Bitness";Expression={if (!$_.Parent.ToString().TrimStart('Framework')) {[int]32} else {[int]$_.Parent.ToString().TrimStart('Framework')}}}
Get-ChildItem 'HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP' -Recurse | Get-ItemProperty -Name Version, Release -ErrorAction SilentlyContinue | Where-Object { $_.PSChildName -match '^(?!S)\p{L}' } | Select-Object -Property Version, Release

以上是关于powershell PowerShell:列出已安装的.NET版本的主要内容,如果未能解决你的问题,请参考以下文章

powershell PowerShell:列出Active Directory子网

powershell PowerShell函数,用于列出本地组的成员,例如Administrators。

powershell powershell脚本列出了用户的所有个人视图,并根据需要提供删除选项。

powershell 此PowerShell脚本列出了SharePoint列表中的所有字段内部名称。

Powershell:将所有具有“NetworkRuleSet”属性的 Azure 存储帐户列出/导出到 CSV

powershell [AD - List AD OU]列出域中的所有AD OU #Windows #Powershell #ActiveDirectory