Help with exporting $_.Hotfixid to a .CSV row


hello,

i need "hotfixid" returned get-hotfix cmdlet to export single .csv row rather column.

$date = get-date '26/03/2013'  $results = get-hotfix  -computername server01 |   where-object {$_.hotfixid -ne "file 1"} |  "installedon" -gt $date  | select hotfixid  $results | export-csv -notypeinformation c:\temp\reults.csv -append
how can done? 

here 1 way:

$date = get-date '26/03/2013' $results=get-hotfix  -computername server01 |  	where-object {$_.hotfixid -ne "file 1"} -and {$_.installedon -gt $date}| 	select -expandproperty hotfixid  ($results -join ",") | out-file c:\temp\reults.csv -append -encoding ascii




Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

DCOM received error "2147746132" from...

DFSR RPC replication errors 5014 1726 with large files over VPN

ADFS 3.0 Event ID 4625 | An Error occurred During Logon | Status: 0xC000035B