In this section, we will help you getting started with Lync Server scripting and automation using a set of Windows PowerShell scenarios and examples.
In this scenario, you are voice administrators who have recently installed Lync Server in the corporate network and want to enable the users for Lync in order to be able to use the Lync client on their machines.
Get the list of available users using the
Get-CsAdUser
cmdlet, and then filter the results to make sure that retrieved users have e-mail addresses and are not enabled for Lync use.Define a variable called
Users
to store the list of filtered users.Use the
ForEach
loop to iterate over the list of users.Define a variable called
SIP
to store the parsed string of the user's SIP address.Use the
Enable-CsUser
cmdlet within theForEach
loop defined in the previous step to enable each user for Lync capabilities. Use theGet-CSPool
cmdlet to get the Lync pool.
Use the...