Added Files

This commit is contained in:
DistractADD
2021-07-06 13:16:46 +10:00
parent f2475a3bdd
commit cfddd4fad2
393 changed files with 65842 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
# Enable all licenced users for Microsoft audio conferencing
#
# In addition to the SfB module this requires the MSOnline module so it can check who is licenced.
#
# Import MSOnline module and connect
Import-Module MSOnline
Connect-MsolService
# Load the Skype Online Connector module and connect
Import-Module SkypeOnlineConnector
$sfbSession = New-CsOnlineSession
Import-PSSession -Session $sfbSession
# This can be just one licence, or several, eg. MCOMEETADV (audio conferencing), ENTERPRISEPREMIUM (E5) and MEETING_ROOM all include audio conferencing.
# List of available SKUs can be obtained with (Get-MsolAccountSku).AccountSkuId
$audioConferencingLicences = @('MCOMEETADV','ENTERPRISEPREMIUM','MEETING_ROOM')
# Find everyone who has the audio conferencing licence(s) assigned
$users = @()
foreach ($audioConferencingLicence in $audioConferencingLicences) {
$users += (Get-MsolUser -All | Where-Object {($_.licenses).AccountSkuId -match $audioConferencingLicence}).UserPrincipalName
}
# Get the default service number from your tenant
$defaultServiceNumber = (Get-CsOnlineDialInConferencingBridge -Name 'Conference Bridge').DefaultServiceNumber
# Enable conferencing for everyone on that list who doesn't already have it enabled
foreach ($user in $users) {
$currentProvider = (Get-CsOnlineDialInConferencingUserInfo -Identity $user).Provider
if ($currentProvider -ne 'Microsoft') {
Enable-CsOnlineDialInConferencingUser -ServiceNumber $defaultServiceNumber -ReplaceProvider -SendEmail
}
}
# Disconnect
Remove-PSSession -Session $sfbSession