Teams Rooms Resource Accounts 2: PowerShell and Azure Active Directory
HTML-код
- Опубликовано: 6 окт 2024
- In this video, you will learn how to create a Team Rooms resource account via PowerShell
-----------------------------------
Set-ExecutionPolicy -ExecutionPolicy Unrestricted
Install-Module -Name ExchangeOnlineManagement
Connect-ExchangeOnline
New-Mailbox -MicrosoftOnlineServicesID 'MTR-TVW-ConferenceRoom03@teamsdeviceslab.com' -Name 'Townview-Conference Room 3' -Alias 'MTR-TVW-ConferenceRoom03' -Room -EnableRoomMailboxAccount $true -RoomMailboxPassword (ConvertTo-SecureString -String 'P@$$W0rd1234' -AsPlainText -Force)
Set-CalendarProcessing -Identity 'Townview-Conference Room 3' -AutomateProcessing AutoAccept -AddOrganizerToSubject $false -DeleteComments $false -DeleteSubject $false -ProcessExternalMeetingMessages $true -RemovePrivateProperty $false -AddAdditionalResponse $true -AdditionalResponse "This is a Microsoft Teams Meeting room!"
Disable password expiration
-------------------------
Install-Module Microsoft.Graph.Users.Actions
Connect-MgGraph -Scopes User.ReadWrite.All, Organization.Read.All
Update-MgUser -UserId 'MTR-TVW-ConferenceRoom03@teamsdeviceslab.com' -PasswordPolicies DisablePasswordExpiration -UsageLocation 'US'
License
---------------------
Get-MgSubscribedSku -All | select skupartnumber, SkuId | sort SkuPartNumber
Set-MgUserLicense -UserId 'MTR-TVW-ConferenceRoom03@teamsdeviceslab.com' -AddLicenses @{SkuId = '6070a4c8-34c6-4937-8dfb-39bbc6397a60'} -RemoveLicenses @()
Multiple licenses
----------------
Get-MgSubscribedSku -All | select skupartnumber, SkuId | sort SkuPartNumber
$TeamsRoomsSkuId = '6070a4c8-34c6-4937-8dfb-39bbc6397a60'
$CallingPlaneSkuId = '0dab259f-bf13-4952-b7f8-7db8f131b28d'
$addLicenses = @(
@{SkuId = $TeamsRoomsSkuId},
@{SkuId = $CallingPlaneSkuId}
)
Set-MgUserLicense -UserId 'MTR-TVW-ConferenceRoom03@teamsdeviceslab.com' -AddLicenses $addLicenses -RemoveLicenses @()
----------------------
I listened to the album "Ultra" by Depeche Mode while producing this.
Not sure why hasn't anybody appreciated the efforts and the effects you have put in the video. Let me jump in and say that you deserve kudos for what you have done. :) Also there are not many individuals in the market with this skillset, so I am very sure that in maybe some couple of years from now, your videos will get more views and they'll be truly deserved.