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
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
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks Subsun....I am having typing issues today. I did type the command properly when I ran it if that counts for anything! haha!
ASKER
Import-CSV "C:\lyncusers.csv" | ForEach-Object {Set-CsUser -Identity $._DisplayName -EnterpriseVoiceEnabled $True -LineURI $._LineURI}