question

VinodSurvase-1595 avatar image
0 Votes"
VinodSurvase-1595 asked Nivedipa-MSFT-6619 commented

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

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
office-teams-windows-itprooffice-teams-app-devmicrosoft-graph-teamwork
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @VinodSurvase-1595,

Just checking in to see how things are going on with this thread. Have you had a chance to try the suggestion provided in michev's last reply? If his post was helpful, you can click the "Accept Answer" button so that others with similar issue can benefit from your thread. If you are still looking for help on this, feel free to post back.

0 Votes 0 ·

1 Answer

michev avatar image
0 Votes"
michev answered Nivedipa-MSFT-6619 commented

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"}
· 5
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@VinodSurvase-1595 - Could you please confirm is your issue resolved with above answer or are you still looking for any help?

0 Votes 0 ·

Thanks @michev , I will check it and update here

0 Votes 0 ·

@michev , I have run above given commands and I am getting below error on PowerShell


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

Error: Invalid use of command line. Type "winrm -?" for help.

0 Votes 0 ·
michev avatar image michev VinodSurvase-1595 ·

That's not a PowerShell cmdlet, run it in cmd. If you want to run it in PowerShell, you need to "escape" the last part:

 winrm set winrm/config/client/auth '@{Basic="true"}'
1 Vote 1 ·

@VinodSurvase-1595 - Could you please confirm is your issue resolved with above answer then accept it so that others who encounter the same issue can find this solution and fix their problem.

0 Votes 0 ·