Script needed to provision new Lync 2013 user

Posted on 2014-08-01
Last Modified: 2014-08-04
I'm looking for PS script that will enable me to provision a user simply by typing in his username. I would like to navigate to a folder containing the PS cmd> which has the PS script, then type in something like .\Enable-CsUser.ps1 <username> This script should then set the -RegistrarPool, and -SipAddress properties for the user.

Any thoughts?
Question by:kt KTAdmin
    LVL 41

    Expert Comment

    Login to Lync Server, launch Lync Shell and type below command

    Enable-CsUser -Identity "Username" -RegistrarPool "" -SipAddressType SamAccountName  -SipDomain

    Author Comment

    by:kt KTAdmin

    Thanks for getting back so soon. I'm very family with enable-Csuser cmdlet. However, my goal is to be able to simply type in a username or SamAccountName and have it auto-populate the -RegistrarPool and -SipAddress properties.

    Thanks again.
    LVL 41

    Accepted Solution

    You can use an input file and pipe it to PS command. Like:

    Author Comment

    by:kt KTAdmin
    I'm not wanting to use a csv file. Just want to enable one user at a time as need arises. Can you provide an example?

    Author Closing Comment

    by:kt KTAdmin
    I can use this as a guide, but still helpful. Thank you!

    Featured Post

    PRTG Network Monitor: Intuitive Network Monitoring

    Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

    Join & Write a Comment

    Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
    To show how to create a transport rule in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Mail Flow >> Rules tab.:  To cr…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…

    754 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

    25 Experts available now in Live!

    Get 1:1 Help Now