SOLVED

Move some users to "Teams Only" mode with powershell

Copper Contributor
Does anyone have a script that will move users in bulk from islands mode to ms teams only please?
20 Replies
Hi Linus Cansby

First thanks for sharing your knowledge,

my csv file is as you described

SipAddress
user1@contoso.com
user2@contoso.com

But when I run on the powershell it generates the message below:

Cannot convert 'user1@contoso.com user2@contoso.com' to the type
'Microsoft.Rtc.Management.AD.UserIdParameter' required by parameter 'Identity'. Specified method is not supported.
+ CategoryInfo : InvalidArgument: (:) [Grant-CsTeamsUpgradePolicy], ParameterBindingException
+ FullyQualifiedErrorId : CannotConvertArgument,Microsoft.Rtc.Management.AD.Cmdlets.AssignCSTeamsUpgradePolicyCmdl
et
+ PSComputerName : api.interfaces.records.teams.microsoft.com