Loveofmoneyisrootofallprosperity Pl Galleria Php Category FIESTAS%20DE%20VERANO%202010 Happiness Finding Happiness Life Happiness Happiness Quotes Happiness Richard Layard Money Make You Happy Happiness Layard Can Buy Happiness Money Makes You Happy Money Happy Export to CSV?

Money

Loveofmoneyisrootofallprosperity Pl Galleria Php Category FIESTAS%20DE%20VERANO%202010 Happiness Finding Happiness Life Happiness Happiness Quotes Happiness Richard Layard Money Make You Happy Happiness Layard Can Buy Happiness Money Makes You Happy Money Happy Export to CSV?

Loveofmoneyisrootofallprosperity Pl Galleria Php Category FIESTAS%20DE%20VERANO%202010 Happiness Finding Happiness Life Happiness Happiness Quotes Happiness Richard Layard Money Make You Happy Happiness Layard Can Buy Happiness Money Makes You Happy Money Happy

Hello,

I have just started using PowerShell and I have tried to retrive information from Active Directory but not been able to export the information to a csv file.

I want the script to find all groups named "Finance" and then read the "Info" attribute on this groups and export to a CSV file.

This is the script:

function connect{}

$colResults = $objSearcher.FindAll()

foreach ($objResult in $colResults)
    {}
}
$csvfile="c:\finance.csv"
connect | export-csv $csvfile

When I open the csv file it only contains #TYPE system.int32

Thank you

Hakan

 

すべての返信