• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 4358
  • Last Modified:

Modify LineUri of all Lync users using Powershell

I am looking for a Lync Powershell script to modify all my Lync users LineUri attribute using a csv file.  (tel:+14045551212;ext=1212)   I am also looking for a way to remove the Private Line attribute from my users.

Can you assist?  

Anthony K O365
Anthony K O365
1 Solution
Rajitha ChimmaniCommented:
I have not tried but you can use the below command.

Add all your users to the csv file with Name and LineUri numbers. The first line of the csv file must have the words Name,LineUri

foreach($User in Import-Csv <csvfilepath>){Set-CsUser -Identity $User.Name -LineUri $User.LineUri -PrivateLine $null}

Refer this article for complete details of this command: http://technet.microsoft.com/en-us/library/gg398510.aspx
Anthony K O365Author Commented:
This was a big help!

Thanks much!

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now