Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


Lync 2010 enable bulk users using csv

Posted on 2012-03-19
Medium Priority
Last Modified: 2012-06-27
I need to enable 200 users in Lync 2010 using a csv file formatted as such:

Name,Pool, Sip Address

Please assist.

thank you!
Question by:Anthony K O365
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
  • 7
  • 3
LVL 42

Expert Comment

by:Adam Brown
ID: 37739152
You would do something like this:

$users = import-csv <filename> 
foreach ($user in $users)
{Enable-CsUser –Identity $user.name –RegistrarPool $user.pool –SipAddress user.sipaddress}

Open in new window

You would also need to make sure there are no spaces in the names of your first line, so Sip Address needs to be SipAddress

Author Comment

by:Anthony K O365
ID: 37739223
Here is the error I get:

Enable-CsUser : Cannot bind parameter 'RegistrarPool'. Cannot convert value "LyncPool1@apsk12.org" to type "Microsoft.Rtc.Management.Deploy.Fqdn". Error: "Inv
alid fully qualified domain name (FQDN).
Parameter name: fqdn"
At C:\EnableLync.ps1:3 char:51

That is the correct lync Pool
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

LVL 42

Accepted Solution

Adam Brown earned 2000 total points
ID: 37739229
The Lync pool should be the FQDN of the lync pool, not the SIP address for it. It's the host name used to direct clients to your front end servers.

Author Comment

by:Anthony K O365
ID: 37739294
This is what the Lync console shows the Lync Pool to be:


Not sure why it's not working.
LVL 42

Expert Comment

by:Adam Brown
ID: 37739304
Can you screenshot where you're seeing that and post it?

Author Comment

by:Anthony K O365
ID: 37739334
Actually LyncPool1.apsk12.org worked! (the FQDN)

thank you!!

Author Closing Comment

by:Anthony K O365
ID: 37739337
This worked!

Author Comment

by:Anthony K O365
ID: 37739404
Now I'm getting this:

Enable-CsUser : ConstraintViolationNoLeadingOrTrailingWhitespace

Here is what I'm using:

Name,Pool, SipAddress

No spaces anywhere!

Author Comment

by:Anthony K O365
ID: 37739427
Here is a screen shot of the error


Author Comment

by:Anthony K O365
ID: 37739461
Here is the Powershell script I used:

$users = import-csv C:\lync_Users.csv
foreach ($user in $users)
{Enable-CsUser –Identity $user.name –RegistrarPool $user.pool –SipAddress $user.sipaddress

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

In-place Upgrading Dirsync to Azure AD Connect
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...
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…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…

730 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