Modify LineUri of all Lync users using Powershell

Posted on 2012-08-22
Last Modified: 2012-08-23
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?  

Question by:kt KTAdmin
    LVL 16

    Accepted Solution

    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:

    Author Closing Comment

    by:kt KTAdmin
    This was a big help!

    Thanks much!

    Featured Post

    Gigs: Get Your Project Delivered by an Expert

    Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

    Join & Write a Comment

    Suggested Solutions

    I recently purchased a Bluetooth headset called the Music Jogger (model BSH10). The control buttons on it look like this: One of my goals is to use it as the microphone and speakers for Skype calls. In that respect, it works well. However, I …
    How to sign a powershell script so you can prevent tampering, and only allow users to run authorised Powershell scripts
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    732 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

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now