Solved

Setting Lync LineURI for users from a CSV file

Posted on 2013-05-11
3
1,133 Views
Last Modified: 2013-05-16
Good day,

I am trying to set the LineURI for a large number of MS Lync Users without modifying each user account.  I have the users in a CSV file with the appropriate information.  I will attach a sample of the file.  I know the following command will allow me to enable them for voice but how do I set the remaining attribute as well.  Any suggestions?

Import-CSV "C:\lyncusers.csv" | ForEach-Object{set-csuser -Identity{Set-CsUser –Identity $_.User –EnterpriseVoiceEnabled $True}

Lyncusers.csv
0
Comment
Question by:bullfrog264
  • 2
3 Comments
 
LVL 1

Author Comment

by:bullfrog264
ID: 39158662
So I answered my own question I suppose.  I was using DisplayName and had misspelled LineURI so this command wasn't working.  I corrected those two items and all is well.  I figured I would share for other people to use.

Import-CSV "C:\lyncusers.csv" | ForEach-Object {Set-CsUser -Identity $._DisplayName -EnterpriseVoiceEnabled $True -LineURI $._LineURI}
0
 
LVL 40

Accepted Solution

by:
Subsun earned 500 total points
ID: 39164160
FYI.. There is a small typo in your code.. :-)
$._LineURI should change to $_.LineURI
$._DisplayName should change to $_.DisplayName
Import-CSV "C:\lyncusers.csv" | % {Set-CsUser $_.DisplayName -EnterpriseVoiceEnabled $True -LineURI $_.LineURI}

Open in new window

0
 
LVL 1

Author Closing Comment

by:bullfrog264
ID: 39171073
Thanks Subsun....I am having typing issues today.  I did type the command properly when I ran it if that counts for anything! haha!
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Join & Write a Comment

"Migrate" an SMTP relay receive connector to a new server using info from an old server.
Synchronize a new Active Directory domain with an existing Office 365 tenant
This video discusses moving either the default database or any database to a new volume.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

758 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

18 Experts available now in Live!

Get 1:1 Help Now