Wednesday, May 31, 2017

Assign Skype for Business licenses

Assign Skype for Business licenses

This article gives you tips about assigning Skype for Business licenses to your users. It also provides scripts for assigning licenses in bulk.

IMPORTANT: See Skype for Business add-on licensing for information about what licenses you need to buy and how to buy them - depending on your Office 365 plan - so users get dial-in conferencing, toll free numbers, and the ability to call phone numbers outside your business.

Cloud PBX and PSTN Calling: Tips and scripts for assigning licenses

What you need to know before assigning Cloud PBX and PSTN Calling licenses

  • IMPORTANT: For you to see the Voice option in the left navigation in the Skype for Business admin center, you must first buy at least one Enterprise E5 license, one Skype for Business Cloud PBX add-on license, or one Skype for Business PSTN Conferencing add-on license.

  • Using on-premises PSTN connectivity for hybrid users? If so, you only need to assign a Skype for Business Cloud PBX license. You should NOT assign a PSTN Calling plan.

  • Latency after assigning licenses: Because of the latency between Office 365 and Skype for Business Online, it can possibly take up to 24 hours for a user to be enabled for PSTN Calling after you assign a license. If after 24 hours, the user isn't enabled for PSTN Calling please call us.

  • Error messages: You will get an error message if you haven't purchased the correct number of licenses. If you need to buy more licenses to enable this user for PSTN Calling, choose Buy more.

  • Next steps: After you assign PSTN Calling plan licenses to your users, you will need to get your phone numbers for your organization, and then assign those numbers to the people in your organization. For step-by-step instructions, see Set up PSTN Calling for Skype for Business.

How to assign a Cloud PBX and PSTN Calling license to one user

The steps are the same as assigning an Office 365 license. See Assign licenses to users in Office 365 for business licenses.

How to assign Cloud PBX and PSTN Calling licenses in bulk

  1. Install the Microsoft Online Services Sign-In Assistant for IT Professionals RTW. Don't have the module installed? See Microsoft Online Services Sign-In Assistant for IT Professionals RTW to download it.

  2. Install the Windows Azure Active Directory Module. Don't have the module installed? See Manage Azure AD using Windows PowerShell for download instructions and cmdlet syntax.

  3. Once you get the modules installed, use the Windows PowerShell command prompt and the following syntax to assign the licenses to your users:

    This example assigns an Enterprise E3 license along with a Skype for Business Cloud PBX and Skype for Business PSTN Domestic Calling PSTN calling plan license.

    The name of the licenses or product names in the script are listed in italics text (see Cloud PBX and PSTN Calling product names or SKUs used for scripting, after the example).

    #Create a text file with a single row containing list of UserPrincipalName (UPN) of users to license. The MSOLservice uses UPN to license user accounts in Office 365.  #Example of text file:  #user1@domain.com  #user2@domain.com    #Import Module  ipmo MSOnline    #Authenticate to MSOLservice.  Connect-MSOLService    #File prompt to select the userlist txt file.  [System.Reflection.Assembly]::LoadWithPartialName("System.windows.forms") | Out-Null    $OFD = New-Object System.Windows.Forms.OpenFileDialog    $OFD.filter = "text files (*.*)| *.txt"    $OFD.ShowDialog() | Out-Null    $OFD.filename    If ($OFD.filename -eq '')  {  Write-Host "You did not choose a file. Try again" -ForegroundColor White -BackgroundColor Red  }    #Create a variable of all users.  $users = Get-Content $OFD.filename    #License each user in the $users variable.  #Use MCOPSTN1 for PSTN Domestic Calling and MCOPSTN2 for Domestic and International Calling.  foreach ($user in $users)      {      Write-host "Assigning License: $user"      Set-MsolUserLicense -UserPrincipalName $user -AddLicenses "companyname:ENTERPRISEPACK" -ErrorAction SilentlyContinue      Set-MsolUserLicense -UserPrincipalName $user -AddLicenses "companyname:MCOEV" -ErrorAction SilentlyContinue      Set-MsolUserLicense -UserPrincipalName $user -AddLicenses "companyname:MCOPSTN1" -ErrorAction SilentlyContinue      }   

Cloud PBX and PSTN Calling product names or SKUs used for scripting

Product name

SKU part name

Enterprise E5 (with Cloud PBX)

ENTERPRISEPREMIUM

Enterprise E3

ENTERPRISEPACK

Enterprise E1

STANDARDPACK

Skype for Business Online Standalone Plan 2

MCOSTANDARD

Skype for Business Cloud PBX

MCOEV

Skype for Business PSTN Domestic and International Calling

MCOPSTN2

Skype for Business PSTN Domestic Calling

MCOPSTN1

Skype for Business PSTN Consumption

MCOPSTNPP

PSTN conferencing: Tips and scripts for assigning licenses

What you need to know before assigning PSTN conferencing licenses

  • Third-party conferencing provider: If someone is already set up to use a third-party dial-in conferencing provider, when you assign them a Skype for Business PSTN Conferencing license, they will be changed to use Microsoft as the dial-in conferencing provider. You can change them back to the third-party provider.

  • Next steps: After you assign PSTN conferencing licenses, you need to assign a dial-in conferencing provider. Do one of the following:

How to assign a PSTN Conferencing license to one user

The steps are the same as assigning an Office 365 license. See Assign licenses to users in Office 365 for business licenses.

How to assign PSTN conferencing licenses in bulk

  1. Download and install Microsoft Online Services Sign-In Assistant for IT Professionals RTW.

  2. Download and install the Windows Azure Active Directory Module. See Manage Azure AD using Windows PowerShell for download instructions and cmdlet syntax.

    Once you get the modules installed, use the Windows PowerShell command prompt and the following syntax to assign the licenses to your users:

    The name of the licenses or product names in the script are listed in italics text. See Dial-in conferencing product names or SKUs used for scripting for all of the product names.

    This example assigns an Enterprise E3 license along with a PSTN Conferencing license.

    #Create a text file with a single row containing list of UserPrincipalName (UPN) of users to license. The MSOLservice uses UPN to license user accounts in Office 365.  #Example of text file:  #user1@domain.com  #user2@domain.com    #Import Module  ipmo MSOnline    #Authenticate to MSOLservice  Connect-MSOLService    #File prompt to select the userlist txt file  [System.Reflection.Assembly]::LoadWithPartialName("System.windows.forms") | Out-Null    $OFD = New-Object System.Windows.Forms.OpenFileDialog    $OFD.filter = "text files (*.*)| *.txt"    $OFD.ShowDialog() | Out-Null    $OFD.filename    If ($OFD.filename -eq '')  {  Write-Host "You did not choose a file. Try again" -ForegroundColor White -BackgroundColor Red  }    #Create a variable of all users  $users = Get-Content $OFD.filename    #License each user in the $users variable  foreach ($user in $users)      {      Write-host "Assigning License: $user"      Set-MsolUserLicense -UserPrincipalName $user -AddLicenses "companyname:ENTERPRISEPACK" -ErrorAction SilentlyContinue      Set-MsolUserLicense -UserPrincipalName $user -AddLicenses "companyname:MCOMEETADV" -ErrorAction SilentlyContinue      }   

Dial-in conferencing product names or SKUs used for scripting

Product name

SKU part name

Skype for Business PSTN Conferencing

MCOMEETADV

Skype for Business Online Standalone Plan 2

MCOSTANDARD

Enterprise E1

STANDARDPACK

Enterprise E3

ENTERPRISEPACK

Enterprise E5 (with dial-in conferencing)

ENTERPRISEPREMIUM_NOPSTNCONF

Enterprise E5 (with dial-in conferencing)

ENTERPRISEPREMIUM

PSTN Consumption

What you need to know before assigning PSTN Consumption licenses

  • Enterprise E5 customers: Even if your users are assigned Enterprise E5 licenses, we still recommend that you assign them Skype for Business PSTN Consumption licenses.

  • Next steps: After you assign these licenses, you will need to get your phone numbers for your organization, and then assign those numbers to the people in your organization. For step-by-step instructions, see Set up PSTN Calling for Skype for Business.

How to assign a PSTN Consumption license to one user

The steps are the same as assigning an Office 365 license. See Assign licenses to users in Office 365 for business licenses.

How to assign PSTN Consumption licenses in bulk

Take a look at the sample script for assigning PSTN Conferencing licenses. Update it with the info for assigning PSTN Consumption licenses.

Related articles

Set up dial-in or PSTN conferencing for Skype for Business

Set up PSTN Calling for Skype for Business

Add funds and manage Skype for Business PSTN Consumption

1 comment: