Assign several PSTN conferencing licenses at the same time

Use Windows PowerShell to assign PSTN Conferencing licenses to hundreds or thousands of users at the same time. You need to assign PSTN Conferencing licenses everyone who is going to schedule or host meetings.

Assign PSTN conferencing licenses to many users

  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.

  3. 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:
    #Import Module
    ipmo MSOnline
    #Authenticate to MSOLservice
    #File prompt to select the userlist txt file
    [System.Reflection.Assembly]::LoadWithPartialName("") | Out-Null
      $OFD = New-Object System.Windows.Forms.OpenFileDialog
      $OFD.filter = "text files (*.*)| *.txt"
      $OFD.ShowDialog() | Out-Null
    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


Skype for Business Online Standalone Plan 2


Enterprise E1


Enterprise E3


Enterprise E5 (with dial-in conferencing)


Enterprise E5 (with dial-in conferencing)


See Also

Using Windows PowerShell to manage Skype for Business Online

Share Facebook Facebook Twitter Twitter Email Email

Was this information helpful?

Great! Any other feedback?

How can we improve it?

Thank you for your feedback!