Lync 2010 enable bulk users using csv

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!
Anthony K O365Asked:
Who is Participating?
 
Adam BrownSr Solutions ArchitectCommented:
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
 
Adam BrownSr Solutions ArchitectCommented:
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
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
Anthony K O365Author Commented:
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
 
Anthony K O365Author Commented:
This is what the Lync console shows the Lync Pool to be:

LyncPool1@apsk12.org

Not sure why it's not working.
0
 
Adam BrownSr Solutions ArchitectCommented:
Can you screenshot where you're seeing that and post it?
0
 
Anthony K O365Author Commented:
Actually LyncPool1.apsk12.org worked! (the FQDN)

thank you!!
0
 
Anthony K O365Author Commented:
This worked!
0
 
Anthony K O365Author Commented:
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
 
Anthony K O365Author Commented:
Here is a screen shot of the error

thanks!
error-screenshot.docx
0
 
Anthony K O365Author Commented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.