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

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?
0
Anthony K O365
Asked:
Anthony K O365
  • 3
  • 2
1 Solution
 
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
 
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

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

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