During a deployment, we were met with the request of calls in a hunt group (or queue) should be able to go to an Exchange UM enabled mailbox for the department/function.
HG name is department@sipdomain e.g. email@example.com
Exchange mailbox is department@sipdomain e.g. firstname.lastname@example.org
UPN for the Exchange mailbox is the same as the e-mailaddress
The mailbox account is (should be) disabled in AD, so first move is to enable the account. Then I enable the account for Lync using Powershell:
Get-CsAdUser -Identity "email@example.com"|Enable-CsUser -RegistrarPool Lyncpool.kml.local -SipDomain kml.local -SipAddress sip:firstname.lastname@example.org
The Lync user should be Enterprise Voice enabled to be able to utilize the UM mailbox
Set-CsUser -Identity email@example.com -EnterpriseVoiceEnabled $True
Next step is UM enabling the mailbox (implies that a UM Mailbox Policy has already been defined) this could be done using the Exchange Control Panel or Powershell:
Enable-UMMailbox -Identity "firstname.lastname@example.org" -UMMailboxPolicy UmPolicy1 -Extensions 2000 -PIN 13579 -SIPResourceIdentifier "email@example.com"
Now we'll use SEFAUtil to set the Lync forwarding destination for firstname.lastname@example.org.
.\SEFAUtil.exe /server:lyncpool.kml.local email@example.com /enablefwdimmediate /setfwddestination:"sip:firstname.lastname@example.org;app=voicemail"
Now we can assign the Forward to Voicemail destination in the HG setup and don't forget to record a greeting in the Exchange mailbox.
After recording a greeting, you should consider disabling the AD account again. If you decide to disable the account, the users of the mailbox cannot record a new greeting unless an administrator (you) reenable the account again.