Solved

Setting Lync LineURI for users from a CSV file

Posted on 2013-05-11
3
1,163 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.

Question has a verified solution.

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

Synchronize a new Active Directory domain with an existing Office 365 tenant
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

791 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