Friday, August 26, 2011

Lync - Enabling an User without an email address Tip

Running examples or scripts like the one below assumes using EmailAddress as your Sip Address. If your scripting and perfer to generate your SIP address your self using the –SipAddress property. The –SipDomain and –SipAddressType allow for using Active Directory as source for creating Sip Address Dynamically.

Enable-CsUser -RegistrarPool "Pool1.Domain.com" -SipAddressType EmailAddress -SipDomain "Domain.com" –Identity domain\LyncLookup

For my case I was able to use –SipAddressType SAMAccountName since account names are the same as the Email Addresses of the users. If a Active Directory Property is invalid you will get an Error as seen below.

Enable-CsUser : Email address is not valid. Specify a valid email address and then try again

Using –SipAddress to specify your the Sip Address would also work if your user account properties have nothing to do with your Sip deployment. The example below is the first example modified to use –SipAddress.

Enable-CsUser -RegistrarPool "Pool1.Domain.com" –SipAddress "sip:LyncLookup@Domain.com" –Identity domain\LyncLookup

For more information about adding users to Lync refer to help

help –Full Enable-CsUser

No comments: