Office-docs-powershell: Exchange Online PowerShell - Remoting must be enabled

Created on 8 May 2020  Â·  5Comments  Â·  Source: MicrosoftDocs/office-docs-powershell

The included requirements fail to mention that PSRemoting must be enabled. Otherwise, the associated winrm commands fail with a message similar to the following:

    Message = The client cannot connect to the destination specified in the request. Verify that the service on the destination is running and is accepting requests. Consult the logs and documentation for the WS-Management service running on the destination, most commonly IIS or WinRM. If the destination is the WinRM service, run the following command on the destination to analyze and configure the WinRM service: "winrm quickconfig".
Error number:  -2144108526 0x80338012

The client cannot connect to the destination specified in the request. Verify that the service on the destination is running and is accepting requests. Consult the logs and documentation for the WS-Management service running on the destination, most commonly IIS or WinRM. If the destination is the WinRM service, run the following command on the destination to analyze and configure the WinRM service: "winrm quickconfig".

To alleviate this, the guide should mention the PowerShell Remoting requirements:



Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

exchange

All 5 comments

@officedocsbot assign @yogkumgit

Hi @jakezatecky, thank you for your feedback.

I think the author decided to not include id because WinRM is enabled by default and you should disable it with Disable-PSRemoting.

@chrisda could you kindly help here? Do you think we can add it? Thanks!

Hello @dariomws, I do not believe Windows Remote Management is enabled by default. I ran the following command on a newer machine, and it failed with the same error as with the previous machine:

winrm get winrm/config/client/auth

My anecdotal evidence suggests that Windows 10 does not enable this service by default. However, it may very well be that Windows Server instances (as opposed to client instances) have Remote Management enabled by default.


As an aside, the same article mentions that Basic Authentication must be enabled and provides a command to enable it otherwise.

Since Basic Authentication is enabled by default, whereas anecdotal evidence suggests WinRM is not, it stands to reason that a brief mention of enabling of the WinRM service would fit in with the article contents

Thanks!

I have verified and it´s true, WinRM is not enabled by default on Windows client. I will add a note. Thanks!

@dariomws Thank you very much for the contribution and updating the documentation with PR. @jakezatecky Hope this update is helpful for you. Thanks for taking out some time to open the issue. Appreciate and encourage you to do the same in future also.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Staffanb88 picture Staffanb88  Â·  3Comments

mrik23 picture mrik23  Â·  5Comments

markgort86 picture markgort86  Â·  4Comments

federico-r-figueredo picture federico-r-figueredo  Â·  5Comments

TobieFysh picture TobieFysh  Â·  3Comments