跳至內容

如何解決使用 RDP 連線到 Amazon EC2 Windows 執行個體時,收到​​的「remote session was disconnected」錯誤?

2 分的閱讀內容
0

我嘗試使用遠端桌面通訊協定 (RDP) 連線到 Amazon Elastic Compute Cloud (Amazon EC2) Windows 執行個體。但是,我收到了「The remote session was disconnected because there are no Remote Desktop License Servers available to provide a license.Please contact the server administrator」錯誤訊息。

簡短說明

如果 EC2 Windows 執行個體上的 Remote Desktop Services 角色主機設定有問題,您就會收到以下錯誤訊息:

「The remote session was disconnected because there are no Remote Desktop License Servers available to provide a license.Please contact the server administrator.」

若要針對執行兩個或更少並行 RDP 工作階段的執行個體疑難排解此問題,請解除安裝 Remote Desktop Services。若要執行超過兩個並行 RDP 工作階段,您必須購買 Remote Desktop Services 用戶端存取授權。

解決方法

解除安裝 Remote Desktop Services

若要自動移除 Remote Desktop Services,請完成以下步驟:

  1. 執行以下命令以開啟 Remote Desktop Services 用戶端,並連線到 Windows 伺服器:

    mstsc /admin
  2. 以管理員身分執行以下命令,解除安裝 Remote Desktop Services 用戶端:

    Uninstall-WindowsFeature -name Remote-Desktop-Services -includemanagementtools -confirm
  3. 重新啟動您的機器。

或者,若要使用 Server Manager 手動移除 Remote Desktop Services,請完成以下步驟:

  1. 選擇 Start (開始) 功能表,然後輸入 Server Manager
  2. 選擇 Server Manager,然後選擇 Manage (管理)。
  3. 選擇 Remove Role and Features (移除角色及功能),然後選擇 Next (下一步)。
  4. 選取您的伺服器。
  5. 選擇 Server Roles (伺服器角色),然後清除 Remote Desktop Services
  6. 選擇 Remove (移除)。
  7. 選擇 Next (下一步)。
  8. 選擇 Close (關閉)。
  9. 選擇 Yes (是) 以重新啟動您的機器。

如果您仍然無法使用 RDP 連線到執行個體,請參閱如何疑難排解 EC2 Windows 執行個體的 RDP 連線問題?

購買 Remote Desktop Services 用戶端存取授權

Remote Desktop Services 的授權寬限期為 120 天。寬限期到期後,您必須購買 Remote Desktop Services 用戶端存取授權,才能允許超過兩個並行 RDP 使用者工作階段。

如需用戶端存取授權購買或安裝的協助,請聯絡您的加值型經銷商或 AWS Partner Network 中的 Microsoft 合作夥伴。

如果您已購買用戶端存取授權,但仍收到「remote session was disconnected」錯誤,則您的執行個體可能無法連線到伺服器。若要疑難排解此問題,請參閱 Microsoft 網站上的因為沒有可用的 Remote Desktop Licensing 伺服器,所以無法連線至 Remote Desktop Services

相關資訊

使用 RDP 連線到您的 Windows 執行個體

Microsoft 網站上的透過用戶端存取授權 (CAL) 授權 Remote Desktop Services

Microsoft 網站上的 mstsc

RDP 顯示黑畫面而非桌面

AWS 官方已更新 5 個月前