Export list of Email Enabled Public Folders - error

Can someone tell me what's wrong with this command?

[PS] C:\Users\administrator.TSN\Desktop>Get-MailPublicFolder | select primarysmtpaddress, email address, identity | expo
rt-csv MailenabledPF.csv
Select-Object : A positional parameter cannot be found that accepts argument 'System.Object[]'.
At line:1 char:30
+ Get-MailPublicFolder | select <<<<  primarysmtpaddress, email address, identity | export-csv MailenabledPF.csv
    + CategoryInfo          : InvalidArgument: (:) [Select-Object], ParameterBindingException
    + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.SelectObjectCommand
LVL 1
HaroldNetwork EngineerAsked:
Who is Participating?
 
FOXConnect With a Mentor Active Directory/Exchange EngineerCommented:
email address doesn't have a space .  it should be emailaddress   try that
0
 
Schnell SolutionsConnect With a Mentor Systems Infrastructure EngineerCommented:
Get-MailPublicFolder | select primarysmtpaddress,emailaddress,identity | Export-Csv MailenabledPF.csv
0
 
HaroldNetwork EngineerAuthor Commented:
@schnellsolutions & Foxluv : HA....no spaces??  Got it!

Thanks much!!
0
 
HaroldNetwork EngineerAuthor Commented:
Appreciate the help!!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.