Solved

Export list of Email Enabled Public Folders - error

Posted on 2016-08-11
4
45 Views
Last Modified: 2016-08-11
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
Comment
Question by:Harold
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 16

Accepted Solution

by:
FOX earned 250 total points
ID: 41752161
email address doesn't have a space .  it should be emailaddress   try that
0
 
LVL 14

Assisted Solution

by:Schnell Solutions
Schnell Solutions earned 250 total points
ID: 41752164
Get-MailPublicFolder | select primarysmtpaddress,emailaddress,identity | Export-Csv MailenabledPF.csv
0
 
LVL 1

Author Comment

by:Harold
ID: 41752173
@schnellsolutions & Foxluv : HA....no spaces??  Got it!

Thanks much!!
0
 
LVL 1

Author Closing Comment

by:Harold
ID: 41752181
Appreciate the help!!
0

Featured Post

Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Auditing domain password hashes is a commonly overlooked but critical requirement to ensuring secure passwords practices are followed. Methods exist to extract hashes directly for a live domain however this article describes a process to extract u…
This article will help to fix the below errors for MS Exchange Server 2013 I. Certificate error "name on the security certificate is invalid or does not match the name of the site" II. Out of Office not working III. Make Internal URLs and Externa…
In this video we show how to create an email address policy in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.:  First we need to log into the Exchange Admin Center. Navigate to the Mail Flow…
To show how to generate a certificate request in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.:  First we need to log into the Exchange Admin Center. Navigate to the Servers >> Certificates…

724 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question