Quantcast
Viewing all articles
Browse latest Browse all 21975

Export CSV comes different

$GGAdmins=@("SG-MFG Grp Administrators","CA-Toronto-AV Grp Administrators")
foreach ($GGAdmin in $GGAdmins)
{
$GGAdminRst=Get-QADGroup $GGAdmin | where-object {$_.distinguishedName -notmatch 'OU=GLOBAL'} | Select-object (@{Name=’Member’;Expression={[string]::join(";", ($_.Member))}}), Notes
$GGAdminMember=(($GGAdminRst.member).split(";")).split(",") -match "CN=*"
write-output $GGAdminMember
$GGAdminMember | Export-Csv -Path "C:\scripts\Renee\MeMGrp01.csv"
}

I try to get members of 2 Security groups

Write out put comes this

CN=SVC-ANISG2W1030ZV
CN=SVC-GDEA-EPO
CN=A-PANDELX1

When I export to CSV come wrong why? See below CSV output. I using powershell V2

Length
20
15
13




Viewing all articles
Browse latest Browse all 21975

Trending Articles



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