Solved

Powershell Enable-MailContact not working for me

Posted on 2010-09-03
3
964 Views
Last Modified: 2012-05-10
Hello all,

For some reason I can't seem to get this to work.  the CSV file only has one user in it as I am testing and the fieds are name,externaladdress as suggested by MS.  I looks like it is reading the file, but can't find the user for some reason.  the user UIDEB4IB was imported and the email address is already there, it just doesn't show up in the GAL.  Also I tried it through the EMC with another user and it imported correctly.  I have about 500 users to do and I would really llike to not have to do this manually if at all possible.

[PS] C:\Windows\system32>import-csv "h:\TestMailEnable1.csv" | ForEach-Object {Enable-MailContact -Idnetity $_.name -ExternalEmailAddress $_.externaladdress}
A positional parameter cannot be found that accepts argument 'UIDEB4IB'.
    + CategoryInfo          : InvalidArgument: (:) [Enable-MailContact], ParameterBindingException
    + FullyQualifiedErrorId : PositionalParameterNotFound,Enable-MailContact

If anyone has any ideas I would greatly appreciate it.
Thanks,
Drew
0
Comment
Question by:adpavlak
[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
3 Comments
 
LVL 32

Expert Comment

by:endital1097
ID: 33597421
i just want to verify that you have contact entries already in active directory and you are trying to mail enabled them
0
 
LVL 32

Accepted Solution

by:
endital1097 earned 250 total points
ID: 33597504
because based on syntax your script is correct (except Identity is misspelled)
0
 

Author Comment

by:adpavlak
ID: 33597885
That was it.  I looked at it I can't tell you how many times and passed right over it.  Thanks!
Drew
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

After hours on line I found a solution which pointed to the inherited Active Directory permissions . You have to give/allow permissions to the "Exchange trusted subsystem" for the user in the Active Directory...
There are times when we need to generate a report on the inbox rules, where users have set up forwarding externally in their mailbox. In this article, I will be sharing a script I wrote to generate the report in CSV format.
In this video we show how to create a mailbox database 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 >> Data…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…
Suggested Courses

626 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