Microsoft Surface Hub 2 SmCamera User Manual
Page 64
![background image](/files/873833/content/doc064.png)
if
(
$null
-eq $UPN_license) {$No_License.add($temp) |
Out-Null
}
#find
resource accounts without licenses
if
($UPN_license -like
"MTR_PREM*"
-or
$UPN_license -like
"MMR_P*"
)
{$MTR_Premium_License.add($temp) |
Out-Null
}
#find resource accounts with
legacy MTR Premium
if
($UPN_license -like
"MEETING_ROOM*"
) {$MeetingRoom_License.add($temp)
|
Out-Null
}
#find resource accounts with legacy Teams Room Standard
licenses
if
($UPN_license -like
"Microsoft_Teams_Rooms_Pro*"
)
{$MeetingRoomPro_License.add($temp) |
Out-Null
}
#find resource accounts
with meeting room pro licenses
if
($UPN_license -like
"Microsoft_Teams_Rooms_Basic*"
)
{$MeetingRoomBasic_License.add($temp) |
Out-Null
}
#find resource accounts
with meeting room basic licenses
if
(!(($UPN_license -like
"MEETING_ROOM*"
)
-or
($UPN_license -like
"Microsoft_Teams_Rooms_*"
)
-or
($UPN_License -like
"MTR_PREM"
)
-or
($UPN_License -like
"MMR_P1"
)-or (
$null
-eq $UPN_license) ))
{$MeetingRoomOther_License.add($temp) |
Out-Null
}
#If there are resource
accounts that have other licenses, add them too.
$Report.Add($temp)
#Creating the file for the CSV, if needed later
$temp =
$null
}
Write-Progress
-Completed -activity
"Searching for resource accounts
with licenses..."
Write-Host