Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 50
  • Last Modified:

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
0
Harold
Asked:
Harold
  • 2
2 Solutions
 
FOXActive Directory/Exchange EngineerCommented:
email address doesn't have a space .  it should be emailaddress   try that
0
 
Schnell SolutionsSystems 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

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now