Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

strip off data from variable

$
0
0

I have this code that works:

$net = (Get-WmiObject win32_product | where {$_.name -like '*Framework*'}).version 

$net contains 3.5.0.0 & 4.5.51209.  I only want the highest value, no matter what it is.  how do you find it?  

 


Viewing all articles
Browse latest Browse all 6937

Trending Articles