Microsoft Surface Hub 2 SmCamera User Manual

Page 62

Advertising
background image


{

Install-Module

ExchangeOnlineManagement

-ErrorAction

SilentlyContinue

}

Else


{

Import-Module

ExchangeOnlineManagement

-ErrorAction

SilentlyContinue

}

Try


{

write-host

"Connecting to your Exchange Online instance"


Connect-ExchangeOnline

-ShowBanner

:

$false

#Note if using GCC, DOD,

or a soverign cloud, see docs for this command for the correct -
ExchangeEnvironmentName. Default is Commerical cloud


write-host

"Connected successfully to your Exchange Online"

-

ForegroundColor

Green


}

Catch

{

write-host

"Unable to connect to your Exchange Online

Environment"

-ForegroundColor

Red


}


Write-Host

Write-Host

"Starting to search for Resource Account Mailbox UPNs and their

licenses..."

-ForegroundColor

Green


$StartElapsedTime = $(

get-date

)


[System.Collections.ArrayList]$No_License = @()

[System.Collections.ArrayList]$MTR_Premium_License = @()

# Also includes

MMR1 license


[System.Collections.ArrayList]$MeetingRoom_License = @()

#Teams Meeting

Room Standard license


[System.Collections.ArrayList]$MeetingRoomPro_License = @()

#Optimal

license


[System.Collections.ArrayList]$MeetingRoomBasic_License = @()

#Basic

license does max out at 25 licenses/tenant

Advertising