You can use the -contains operator if you need to check whether a specific version of .NET is present on your system:
@(dir $env:windir\Microsoft.NET\Framework\v* -name) -contains 'v3.0'
You can use the -contains operator if you need to check whether a specific version of .NET is present on your system: