Enable Enterprise Voice & Lync Functionality For A User From The Shell

Enabling a user for Lync and enterprise voice is easy, if you know how the Enable-CsUser cmdlet works. You can always enable a user for Lync and enterprise voice in one go from the Lync control panel. You can assign all the policies as well from the GUI. If you want to enable a user…

Enabling a user for Lync and enterprise voice is easy, if you know how the Enable-CsUser cmdlet works.

You can always enable a user for Lync and enterprise voice in one go from the Lync control panel. You can assign all the policies as well from the GUI.

Enable user for Lync Control Panel

If you want to enable a user for Lync from the shell, the cmdlet we need to use is Enable-CsUser. In order to find user(s), the cmdlet is Get-CsUser.

The Get-CsUser cmdlet gives us most of the info regarding a user – like the SIP address, pool fqdn, whether the user is enabled for enterprise voice, various policies etc.

Get-Csuser

Hence, you would think that you can use the Enable-CsUser to enable a user for Lync and enterprise voice using the same cmdlet. Wrong! You need to use the Enable-CsUser and Set-Csuser. The reason for this is that the Enable-CsUser cmdlet doesn’t pass objects through the pipeline by default. You need to use the –PassThru paramter and pipe the output to the Set-CsUser cmdlet.

For example, to enable a user for Lync and EV, the command is as follows.

Enable-CsUser “user” –RegistrarPool “pool fqdn” –SIPAddressType EmailAddress –PassThru | Set-CsUser –EnterpriseVoiceEnabled $true

Enable Enterprise voice from Lync Shell

The Enable-CsUser does not have a EnterpriseVoiceEnabled parameter which you can set to $true. You can always break the commands into two and avoid using the –PassThru parameter as well.

This piece of info will come in handy if you are scripting the Lync administration – maybe in a migration or new Lync deployment.

2 Comments

  1. Pat Richard (@patrichard) says:

    Something to keep in mind is that you need to assign a LineURI for the user, and any relevant policies.

    1. Rajith Jose Enchiparambil says:

      Sure Pat. This was more around the fact that -EnterpriseVoiceEnabled parameter is not a “normal” one to setup ;-)

Leave a Reply

Your email address will not be published. Required fields are marked *