Script needed to provision new Lync 2013 user

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?
Anthony K O365Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

AmitIT ArchitectCommented:
Login to Lync Server, launch Lync Shell and type below command

Enable-CsUser -Identity "Username" -RegistrarPool "abc-lync-2013.xyz.com" -SipAddressType SamAccountName  -SipDomain xyz.com
0
Anthony K O365Author Commented:
Amit,

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.
0
AmitIT ArchitectCommented:
You can use an input file and pipe it to PS command. Like:
http://blogs.technet.com/b/nexthop/archive/2010/06/10/scriptmoveusers.aspx
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Anthony K O365Author Commented:
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?
0
Anthony K O365Author Commented:
I can use this as a guide, but still helpful. Thank you!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Chat / IM

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.