Why I am getting below error on powershell while runing this command: >Get-CsHostingProvider -Identity Global?

Vinod Survase 4,701 Reputation points
2022-05-11T09:42:55.677+00:00

Why I am getting below error on PowerShell while running this command: >Get-CsHostingProvider -Identity Global?

Error:

Get-CsHostingProvider -Identity Global

Get-CsHostingProvider : Connecting to remote server api.interfaces.records.teams.microsoft.com failed with the following error message : The
WinRM client cannot process the request. Basic authentication is currently disabled in the client configuration. Change the client
configuration and try the request again. For more information, see the about_Remote_Troubleshooting Help topic.
At line:1 char:1

  • Get-CsHostingProvider -Identity Global
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  • CategoryInfo : ResourceUnavailable: (:) [Get-CsHostingProvider], PSRemotingTransportException
  • FullyQualifiedErrorId : System.Management.Automation.Remoting.PSRemotingDataStructureException,Microsoft.Teams.ConfigApi.Cmdlets.GetCsHos
    tingProvider
Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,056 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,569 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
2,840 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Vasil Michev 95,096 Reputation points MVP
    2022-05-11T10:52:13.82+00:00

    As the error message suggests, the WinRM basic auth endpoint seems to be disabled on your machine. Check via:

    winrm get winrm/config/client/auth
    

    If needed, update the value via:

    winrm set winrm/config/client/auth @{Basic="true"}