Forum Discussion
Kljaja82
Mar 21, 2023Copper Contributor
Teams devices - Configuration Profiles - PowerShell
Hi, Is there any PowerShell module available that can list or assign configuration profiles on Teams Devices? Thank you in advance. Regards,
eliekarkafy
Mar 21, 2023MVP
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.
- Kljaja82Mar 22, 2023Copper Contributor
Thank you for your fast response.
Can you please post documentation and Module version because Google cannot find those commands.
- eliekarkafyMar 22, 2023MVPI modified the commands in the above post, can you try please to use them and let me know if its works for you.
- Kljaja82Mar 22, 2023Copper Contributor