Link to home
Create AccountLog in
Avatar of bullfrog264
bullfrog264

asked on

Setting Lync LineURI for users from a CSV file

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
Avatar of bullfrog264
bullfrog264

ASKER

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}
ASKER CERTIFIED SOLUTION
Avatar of SubSun
SubSun
Flag of India image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Thanks Subsun....I am having typing issues today.  I did type the command properly when I ran it if that counts for anything! haha!