Mar 21 2023 02:32 AM
Hi,
Is there any PowerShell module available that can list or assign configuration profiles on Teams Devices?
Thank you in advance.
Regards,
Mar 21 2023 03:10 AM - edited Mar 22 2023 02:40 AM
To get started, you'll need to install the MicrosoftTeams module by running the following command in PowerShell:
Install-Module -Name MicrosoftTeams
Once the module is installed, you can use the following commands to list or assign configuration profiles:
To list configuration profiles on Teams devices:
Get-CsTeamsIPPhonePolicy
Get-CsTeamsIPPhonePolicy -Identity <ProfileName>
To assign a configuration profile to a Teams device:
Set-CsTeamsIPPhonePolicy -Identity <DeviceIdentity> -ProfileId <ProfileId>
Where <DeviceIdentity> is the unique identifier for the device (such as its serial number), and <ProfileId> is the unique identifier for the configuration profile. You can obtain the ProfileId by running the Get-CsTeamsIPPhonePolicy command.
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily.
Mar 22 2023 02:22 AM
Thank you for your fast response.
Can you please post documentation and Module version because Google cannot find those commands.
Mar 22 2023 02:39 AM
Mar 22 2023 03:34 AM
Mar 22 2023 04:47 AM
Mar 22 2023 05:07 AM
Jun 12 2023 06:59 PM - edited Jun 12 2023 07:07 PM
@Kljaja82 I agree with you.
The teams ipPhonePolicy should not be confused with a Configuration Profile.
I cannot find a way to create or assign configuration profiles via the Teams Powershell Module nor graph API.
In my case, we have a client who is considering moving over 20K physical phones to teams across different geographic regions. Not being able to set language or timezone programmatically is a big limitation.
Jul 28 2023 09:22 PM
@Kljaja82 There does seem to be an unpublished API to make changes programmatically to configuration profiles and apply them using
admin.devicemgmt.teams.microsoft.com/api/v2/configProfiles
(This is in fact the API that the Teams Admin Center uses. )
There's an interesting blog and sample script here where he shows how to programmatically bulk change 400 devices!
https://alexholmeset.blog/2021/12/18/teams-devices-configuration-profiles-uploader/
This being said, I did a pretty deep comparison of using config profiles vs using vendor portals (such as YMCS for Yealink and PolyLens for Poly) and for now seems those portals offer more stability and options as well as API programmability to configure the IP phones.
https://easy365.io/remote-provisioning-of-yealink-phones-for-microsoft-teams-ymcs-vs-tac-configurati...