Weboldal keresés

Új-ExoPSSesion: Nem sikerült csatlakozni a távoli kiszolgálóhoz outlook.office365.com


Bizonyos esetekben a következő hibaüzenet jelenik meg, amikor az EXO2 PowerShell modul használatával csatlakozik az Exchange Online-hoz:

New-ExoPSSession : Connecting to remote server outlook.office365.com failed with the following error 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".
For more information, see the about_Remote_Troubleshooting Help topic.

Kérjük, lépjen be a Microsoft felhő Exchange környezetébe, és ellenőrizze, hogy fut-e a WS-menedzsment szolgáltatás! ?

Ellentétben azzal, amit ez a hibaüzenet jelez, természetesen a hiba okát a helyi rendszeren kell keresnie.

Számos oka lehet annak, hogy a rendszer nem tudja teljesíteni a csatlakozási kérelmet.

Az egyik probléma az érvénytelen proxybeállítás lehet. Ha például a Fiddlerrel vagy más eszközökkel játszik, és helyi proxybeállításokat állít be, véletlenül blokkolhatja az EXO csatlakozási kérést.

Ellenőrizze a hamis proxybeállításokat a következő paranccsal:

PS C:\> netsh winhttp show proxy

Current WinHTTP proxy settings:

    Proxy Server(s) :  localhost:8888
    Bypass List     :  (none)

Ha bármilyen (érvénytelen) aktív proxybeállítást talál, a következő paranccsal tisztíthatja meg őket:

PS C:\> netsh winhttp reset proxy

Current WinHTTP proxy settings:

    Direct access (no proxy server).

PS C:\> netsh winhttp show proxy

Current WinHTTP proxy settings:

    Direct access (no proxy server).

Ha ezekkel a beállításokkal nincs útban, akkor vissza kell térnie az üzlethez:

PS C:\WINDOWS\system32> Connect-ExchangeOnline

----------------------------------------------------------------------------
The module allows access to all existing remote PowerShell (V1) cmdlets in addition to
the 9 new, faster, and more reliable cmdlets.

|--------------------------------------------------------------------------|
|    Old Cmdlets                    |    New/Reliable/Faster Cmdlets       |
|--------------------------------------------------------------------------|
|    Get-CASMailbox                 |    Get-EXOCASMailbox                 |
|    Get-Mailbox                    |    Get-EXOMailbox                    |
|    Get-MailboxFolderPermission    |    Get-EXOMailboxFolderPermission    |
|    Get-MailboxFolderStatistics    |    Get-EXOMailboxFolderStatistics    |
|    Get-MailboxPermission          |    Get-EXOMailboxPermission          |
|    Get-MailboxStatistics          |    Get-EXOMailboxStatistics          |
|    Get-MobileDeviceStatistics     |    Get-EXOMobileDeviceStatistics     |
|    Get-Recipient                  |    Get-EXORecipient                  |
|    Get-RecipientPermission        |    Get-EXORecipientPermission        |
|--------------------------------------------------------------------------|

To get additional information, run: Get-Help Connect-ExchangeOnline or check
https://aka.ms/exops-docs

Send your product improvement suggestions and feedback to exocmdletpreview@service.microsoft.com.
For issues related to the module, contact Microsoft support.
Don't use the feedback alias for problems or support issues.
----------------------------------------------------------------------------

Kapcsolódó cikkek