Need help for commands to apply/remove/update lync licensing on Active Directory users.
You can use the Enable-CsUser and Disable-CsUser cmdlets to enable and disable Lync on AD accounts. Is that what you are looking for?
I am looking for applying lync licensing to users.
What have you read exactly? While I'm only familiar with on-premise Lync Server 2010, in our organisation we simply use Enable-CsUser to enable an AD user to use Lync. Set-CsUser -Identity user -EnterpriseVoiceEnabled $True should enable the user for enterprise voice. I don't believe in any licensing situation do you actually "apply a license to a user". You have an allocated amount and type of licenses and you enable or disable users with your Lync server to "allocate" those licenses to users...
I hope this helps. If not, can you be more specific with the issue you are experiencing?