Solved

Lync 2010 enable bulk users using csv

Posted on 2012-03-19
11
3,043 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
[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
  • 7
  • 3
11 Comments
 
LVL 40

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
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.

 
LVL 40

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 40

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

Backup Solution for AWS

Read about how CloudBerry Backup fully integrates your backups with Amazon S3 and Amazon Glacier to provide military-grade encryption and dramatically cut storage costs on any platform.

Question has a verified solution.

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

Suggested Solutions

Skype is a P2P (Peer to Peer) instant messaging and VOIP (Voice over IP) service – as well as a whole lot more.
A list of top three free exchange EDB viewers that helps the user to extract a mailbox from an unmounted .edb file and get a clear preview of all emails & other items with just a single click on mailboxes.
how to add IIS SMTP to handle application/Scanner relays into office 365.
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to: http://www.codetwo.com/excha…

740 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