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
Post a Comment