enabling Teams user for voice with set-csuser

Darryl 256 Reputation points
2021-04-01T14:56:51.657+00:00

Hi,

I am writing a script to onboard user for enterprise voice in Teams, I'm trying to run set-csuser -enterprisevoiceenabled $true -hostedvoicemail $true.
The error I'm getting is related to the set-csuser failing to connect to an on premise S4B SQL server which we haven't decommissioned yet and is powered off. Is there a way to run set-csuser against the remote powershell connection rather than on premise?

I've switched the on premise server back on and the get-csuser command now works. Is that what i need to do ? I can't leave that server on longer than I need to as it's unsupported

Microsoft Teams | Microsoft Teams for business | Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. JimmyYang-MSFT 58,641 Reputation points Microsoft External Staff
    2021-04-02T07:24:27.103+00:00

    Hi @Darryl

    According to the official document, Set-CsUser cmdlet also applies to Skype for Business online. For more details about this command, you can refer to:

    https://learn.microsoft.com/en-us/powershell/module/skype/set-csuser?view=skype-ps

    If you want to enable enterprise voice in Teams, you can try to connect to Skype online PowerShell before running Set-CsUser:

    Import-Module SkypeOnlineConnector  
    $sfbSession = New-CsOnlineSession  
    Import-PSSession $sfbSession  
    

    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.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.