Checking for .NET Framework Version with Powershell

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'

Twitter This Tip! ReTweet this Tip!


Posted Jul 16 2010, 08:00 AM by ps1
Concentrated Tech NSoftware Dell Compellent Sponsored by Idera and Concentrated Tech and NSoftware and Dell Compellent
Copyright 2011 PowerShell.com. All rights reserved.