Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

How do I out-grid and export to CSV this script?

$
0
0

Hi guys,

I found this script: http://gallery.technet.microsoft.com/scriptcenter/Find-installed-dot-net-16f9f69f 

I need to out-grid and export to CSV

Can you help me please?

Maelitos

$targetlist = "server1","server2","server3" 
$targetlist| foreach { 
$pc = "" 
$pc = $_  "Dot net versions on $pc" 
$versions = gci "\\$pc\c$\windows\Microsoft.Net\Framework" V* | select name 
$versions | foreach { 
$ver = $_.name 
#$ver 
#$ver.length 
If ($ver.Substring(1,1) -lt 9) 
{ 
$ver.Substring(0,4) 
} 
} 
}


Maelito


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>