Solved

Lync 2010 enable bulk users using csv

Posted on 2012-03-19
11
2,904 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:kt KTAdmin
  • 7
  • 3
11 Comments
 
LVL 38

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:kt KTAdmin
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
 
LVL 38

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:kt KTAdmin
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
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 38

Expert Comment

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

Author Comment

by:kt KTAdmin
ID: 37739334
Actually LyncPool1.apsk12.org worked! (the FQDN)

thank you!!
0
 

Author Closing Comment

by:kt KTAdmin
ID: 37739337
This worked!
0
 

Author Comment

by:kt KTAdmin
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:kt KTAdmin
ID: 37739427
Here is a screen shot of the error

thanks!
error-screenshot.docx
0
 

Author Comment

by:kt KTAdmin
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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Exchange server is not supported in any cloud-hosted platform (other than Azure with Azure Premium Storage).
Local Continuous Replication is a cost effective and quick way of backing up Exchange server data. The following article describes the steps required to configure Local Continuous Replication. Also, the article tells you how to restore from a backup…
In this Micro Video tutorial you will learn the basics about Database Availability Groups and How to configure one using a live Exchange Server Environment. The video tutorial explains the basics of the Exchange server Database Availability grou…
This video discusses moving either the default database or any database to a new volume.

708 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now