Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Lync 2010 enable bulk users using csv

Posted on 2012-03-19
11
Medium Priority
?
3,265 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:Anthony K O365
  • 7
  • 3
11 Comments
 
LVL 43

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
 

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
0
Simplify Active Directory Administration

Administration of Active Directory does not have to be hard.  Too often what should be a simple task is made more difficult than it needs to be.The solution?  Hyena from SystemTools Software.  With ease-of-use as well as powerful importing and bulk updating capabilities.

 
LVL 43

Accepted Solution

by:
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.
0
 

Author Comment

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

Expert Comment

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

Author Comment

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

thank you!!
0
 

Author Closing Comment

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

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
joeSmith,lyncPool.contoso.com,sip:joeSmith@contoso.com

No spaces anywhere!
0
 

Author Comment

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

thanks!
error-screenshot.docx
0
 

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
}
0

Featured Post

Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

Question has a verified solution.

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

In this post, I will showcase the steps for how to create groups in Office 365. Office 365 groups allow for ease of flexibility and collaboration between staff members.
Steps to fix error: “Couldn’t mount the database that you specified. Specified database: HU-DB; Error code: An Active Manager operation fail”
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…
Suggested Courses

782 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