I am using this script, and in powershell, it pulls everything up fine.
get-adgroup -Filter * -property mail | fl SamAccountName, Mail, DistinguishedName
However, when I add this to the end
get-adgroup -Filter * -property mail | fl SamAccountName, Mail, DistinguishedName | Export-Csv c:\My...