Yeni-ExoPSSesion: Outlook.office365.com Uzak Sunucusuna Bağlanma Başarısız Oldu


Bazı durumlarda EXO2 PowerShell modülünü kullanarak Exchange Online'a bağlandığınızda aşağıdaki hata mesajını görürsünüz:

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.

Lütfen Microsoft'un bulut Exchange ortamına erişin ve WS yönetim hizmetinin çalışıp çalışmadığını kontrol edin! ?

Bu hata mesajının gösterdiğinin aksine, doğal olarak hatanın nedenini yerel sisteminizde aramalısınız.

Sisteminizin bağlantı isteğini tamamlayamamasının birden fazla nedeni olabilir.

Sorunlardan biri geçersiz bir proxy ayarı olabilir. Örneğin, Fiddler veya diğer araçlarla oynuyorsanız ve yerel proxy ayarlarını yapıyorsanız, yanlışlıkla EXO bağlantı isteğini engelleyebilirsiniz.

Aşağıdaki komutu kullanarak sahte proxy ayarlarını kontrol edin:

PS C:\> netsh winhttp show proxy

Current WinHTTP proxy settings:

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

Herhangi bir (geçersiz) etkin proxy ayarı bulursanız, aşağıdaki komutu kullanarak bunları temizleyebilirsiniz:

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).

Bu ayarların kaldırılmasıyla işinize geri dönmelisiniz:

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.
----------------------------------------------------------------------------

İlgili makaleler