Link to home
Start Free TrialLog in
Avatar of Anthony K O365
Anthony K O365Flag for United States of America

asked on

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?
Avatar of Amit
Amit
Flag of India image

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
Avatar of Anthony K O365

ASKER

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.
ASKER CERTIFIED SOLUTION
Avatar of Amit
Amit
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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?
I can use this as a guide, but still helpful. Thank you!