Installing Hybrid worker on On-Premises Server running Exchange/Skype for business

AdminAS 141 Reputation points
2021-08-18T19:26:16.637+00:00

Okay, I have to ask this because I cannot find a clear answer to this.

I am currently trying to utilize runbooks to enable users for our Skype for business (on-Prem) server to migrate them into Teams. They need to have these accounts first utilize our DID's since they aren't available within Teams. (FYI I know that Skype for business is being and is mostly deprecated. And that they will auto migrate to TeamsOnly mode by themselves now. This doesn't change that I need to "enable-csuser" first)

Considering the migration and deprecation of SFB I am forced to utilize the Microsoft Teams module in PowerShell. This module does not give me access to the "enable-csuser" cmdlet. When I install this on my hybrid worker ( this is an individual VM only used for runbooks for this process) it won't recognize the cmdlet. There is not way to import a CSOnline session into it anymore.

Because of all of this and the need to utilize a module given to the SFB server from the management shell, could use my SFB server as a hybrid worker. I would install, on it, all the appropriate modules and it would run those tasks when requested. Technically, it would be a separate service running then the SFB stuff, so would this work with no interference from its primary function?

Please explain best practice or if you have other ways of enabling SFB users. Once this command is ran i do have decent access to Set-csuser and the like from my hybrid worker.

Skype for Business
Skype for Business
A Microsoft communications service that provides communications capabilities across presence, instant messaging, audio/video calling, and an online meeting experience that includes audio, video, and web conferencing.
603 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,381 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Sharon Zhao-MSFT 25,056 Reputation points Microsoft Vendor
    2021-08-19T06:06:22.593+00:00

    @AdminAS ,

    It is suggested to enable on-premises users either by Enable-CsUser command on Skype for Business server or in Skype for Business Server Control Panel firstly. Then, try to run the following script to migrate users to Microsoft Teams.

    As you know, the root cause is that Enable-CsUser cmdlet is not included in Microsoft Teams module. It can only run for Skype for Business server on-premises. The following image captured from official document shows the evidence:
    124572-image.png


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.