Topic Last Modified: 2013-02-21

The Lync Online users must also be assigned a Lync Online voice policy, also referred to as a Hybrid Voice policy. The tenant administrator assigns the Lync Online voice policy to Lync Online users enabled for on-premises Enterprise Voice by remotely using the PowerShell Lync Server Management Shell cmdlet, Grant-CsVoicePolicy. Perform the following procedures. "HybridVoice" is the default name of the Lync Online voice policy.

To assign the user-specific hybrid voice policy
  1. Start a Windows PowerShell remote session, not a Lync Server Management Shell.

    Note:
    For details about how to start a Windows PowerShell remote session, see Lync Server Windows PowerShell blog article, "Quick Start: Managing Microsoft Lync Server 2010 Using Remote PowerShell," at http://go.microsoft.com/fwlink/?LinkId=255876.
  2. In the Windows PowerShell, type the following command and then press Enter:

    Copy Code
    $PSModuleAutoloadingPreference = "None"
    
  3. Import the following Windows PowerShell command-line interface modules:

    Copy Code
    Import-Module LyncOnlineConnector, Microsoft.PowerShell.Management, Microsoft.PowerShell.Security, Microsoft.PowerShell.Utility
    
  4. Provide your Administrator’s credentials:

    Copy Code
    $cred=Get-Credential <Administrator URI>
    

    You will be prompted to enter the Administrator’s password.

  5. Create a Lync Online session, specifying the URL of your Lync Online Control Panel:

    Copy Code
    $CsSession = New-CsOnlineSession -TargetServer <Lync Online Control Panel URL> -Credential $cred
    
    Note:
    To determine the URL of your Lync Online Control Panel, follow the steps in To determine the Lync Online Control Panel URL for your Office 365 tenant under Move Users to Lync Online.
  6. Import all the commands from the newly created session, $CsSession, into the current session:

    Copy Code
    Import-PsSession -Session $CsSession
    
  7. Assign the Lync Online policy to your user specified by its SIP URI:

    Copy Code
    Grant-CsVoicePolicy -Identity <SIP URI> -PolicyName HybridVoice
    

    For example:

    Copy Code
    Grant-CsVoicePolicy -Identity dorena@contoso.com -PolicyName HybridVoice