Forum Discussion

AusSupport180's avatar
AusSupport180
Brass Contributor
Jun 12, 2021

New sfb Online user and covert to a Teams Only Mode

Hi All,

 

    I'm trying to create a new script to set up a new user for sfb online and then convert to a Teams-only mode. 

 

Noticed required to wait 15-20 min for the user to appear online. So what is the best way of converting that sfb online user to Teams in the same script?

 

This is for our Helpdesk team to set up new users.  

 

SFB Online:

 

 Enable-CsUser -Identity $UserName -SipAddressType Emailaddres HostingProviderProxyFqdn 'sipfed.online.lync.com' -DomainController 'xxxx'

 

Then I can run the Invoke-command to ADSync.

 

 

Invoke-command -ComputerName 'xxxxx' -ScriptBlock { Start-AdSyncSyncCycle }

 

 

Need to connect to Microsoft teams and Set user account for Microsoft Teams *only* 

Teams:

 

Grant-CsTeamsUpgradePolicy -Identity $UserName -PolicyName 'UpgradeToTeams'

 

 

Regards,

AS

 

4 Replies

Resources