Avatar of Harold
Harold
Flag for United States of America

asked on 

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
ExchangePowershell

Avatar of undefined
Last Comment
Harold

8/22/2022 - Mon