Solved

Lync 2010 enable bulk users using csv

Posted on 2012-03-19
11
3,012 Views
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
joeSmith,lyncPool@contoso.com,sip:joeSmith@contoso.com

Please assist.

thank you!
0
Comment
Question by:K Anthony O365
  • 7
  • 3
11 Comments
 
LVL 39

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
0
 
LVL 30

Expert Comment

by:IanTh
ID: 37739156
0
 

Author Comment

by:K Anthony 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
0
Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 
LVL 39

Accepted Solution

by:
Adam Brown earned 500 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.
0
 

Author Comment

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

LyncPool1@apsk12.org

Not sure why it's not working.
0
 
LVL 39

Expert Comment

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

Author Comment

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

thank you!!
0
 

Author Closing Comment

by:K Anthony O365
ID: 37739337
This worked!
0
 

Author Comment

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

Enable-CsUser : ConstraintViolationNoLeadingOrTrailingWhitespace

Here is what I'm using:

Name,Pool, SipAddress
joeSmith,lyncPool.contoso.com,sip:joeSmith@contoso.com

No spaces anywhere!
0
 

Author Comment

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

thanks!
error-screenshot.docx
0
 

Author Comment

by:K Anthony 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
}
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Follow this checklist to learn more about the 15 things you should never include in an email signature from personal quotes, animated gifs and out-of-date marketing content.
How to resolve IMCEAEX NDRs in Exchange or Exchange Online related to invalid X500 addresses.
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…
The video tutorial explains the basics of the Exchange server Database Availability groups. The components of this video include: 1. Automatic Failover 2. Failover Clustering 3. Active Manager

860 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