Solved

Setting Lync LineURI for users from a CSV file

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

Free Webinar: AWS Backup & DR

Join our upcoming webinar with experts from AWS, CloudBerry Lab, and the Town of Edgartown IT to discuss best practices for simplifying online backup management and cutting costs.

Question has a verified solution.

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

I thought I'd write this up for anyone who has a request to create an anonymous whistle-blower-type submission form created using SharePoint 2010 (this would probably work the same for 2013). It's not 100% fool-proof but it's as close as you can get…
The Nano Server Image Builder helps you create a custom Nano Server image and bootable USB media with the aid of a graphical interface. Based on the inputs you provide, it generates images for deployment and creates reusable PowerShell scripts that …
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…

679 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