当前位置:网站首页 > 更多 > 玩电脑 > 正文

[玩转系统] 服务器发生特殊Rpc错误

作者:精品下载站 日期:2024-12-14 03:13:50 浏览:14 分类:玩电脑

服务器发生特殊Rpc错误


您想要删除 Exchange Server 中的证书。登录到 Exchange 管理中心并删除证书后,显示错误。它显示服务器 Exchange 上发生了特殊的 Rpc 错误。使用 PowerShell 删除证书会出现相同的错误。现在如何解决这个问题,为什么会出现这个错误?

删除 Exchange Server 中的证书时出错

删除 Exchange 证书不起作用,并且显示错误。让我们看看 Exchange 管理中心和 PowerShell 中发生了什么。之后我们就可以想出一个解决方案。

Exchange 管理中心服务器上发生特殊 Rpc 错误

删除 Exchange Server 中的证书时出现以下错误。

[玩转系统] 服务器发生特殊Rpc错误

错误
服务器 EX01-2016 上发生特殊 Rpc 错误:无法删除内部传输证书,因为这会导致 Microsoft Exchange 传输服务停止。要替换内部传输证书,请创建新证书。新证书将自动成为内部传输证书。然后您可以删除现有的证书。

使用 PowerShell 在服务器上发生特殊 Rpc 错误的错误

在 Exchange 管理中心中找到要删除的证书指纹。您想在 PowerShell 中查找证书吗?阅读文章使用 PowerShell 获取 Exchange 证书。

点击功能窗格中的服务器,然后点击选项卡中的证书。在列表视图中选择证书,然后单击编辑图标。

[玩转系统] 服务器发生特殊Rpc错误

单击菜单中的常规并复制指纹。

[玩转系统] 服务器发生特殊Rpc错误

以管理员身份运行 Exchange 命令行管理程序。使用Remove-ExchangeCertificate cmdlet,包括-Thumbprint 参数。将您从上一步复制的指纹粘贴到 -Thumbprint 参数后面。

[PS] C:\>Remove-ExchangeCertificate -Thumbprint 0C4C00B76EB7DB236573BF79258888D32C9B753D

Confirm
Are you sure you want to perform this action?
Remove certificate with thumbprint 0C4C00B76EB7DB236573BF79258888D32C9B753D from the computer's certificate store?
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [?] Help (default is "Y"): Y
A special Rpc error occurs on server EX01-2016: The internal transport certificate cannot be removed because that
would cause the Microsoft Exchange Transport service to stop. To replace the internal transport certificate, create a
new certificate. The new certificate will automatically become the internal transport certificate. You can then remove
the existing certificate.
    + CategoryInfo          : InvalidArgument: (:) [Remove-ExchangeCertificate], InvalidOperationException
    + FullyQualifiedErrorId : [Server=EX01-2016,RequestId=2b89e3a0-3a90-44a0-a24f-b4a3aab1ac8f,TimeStamp=6/8/2020 6:14
   :05 PM] [FailureCategory=Cmdlet-InvalidOperationException] 20CCF95D,Microsoft.Exchange.Management.SystemConfigurat
  ionTasks.RemoveExchangeCertificate
    + PSComputerName        : ex01-2016.exoip.local

错误很明显,而且证书无法删除。解决办法是什么?

将证书分配给 Exchange 服务

单击您想要分配给 Exchange 服务的新证书。单击edit图标。在我的示例中,它是自签名证书。

[玩转系统] 服务器发生特殊Rpc错误

点击左侧菜单上的服务。我们可以清楚地看到服务已经被选中并且呈灰色。

[玩转系统] 服务器发生特殊Rpc错误

服务器出现特殊Rpc错误的解决方法

服务通过自签名证书进行检查。但我们无法删除旧证书,因为出现错误。解决办法是什么?答案是PowerShell。我们必须使用 PowerShell 将自签名证书分配给 Exchange 服务。

在执行此操作之前,请复制您要分配的证书的指纹证书

[玩转系统] 服务器发生特殊Rpc错误

将新证书分配给 Exchange 服务。单击Y,然后按Enter

[PS] C:\>Enable-ExchangeCertificate -Thumbprint 9BC8DF0DC366A87E2D397DD4CD328D91533346D2 -Services SMTP,IMAP,POP,IIS

Confirm
Overwrite the existing default SMTP certificate?

Current certificate: '0C4C00B76EB7DB236573BF79258888D32C9B753D' (expires 9/3/2020 6:22:51 PM)
Replace it with certificate: '9BC8DF0DC366A87E2D397DD4CD328D91533346D2' (expires 6/6/2025 8:00:12 PM)
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [?] Help (default is "Y"): Y

单击证书,然后单击删除图标。

[玩转系统] 服务器发生特殊Rpc错误

正在显示警告。单击确定

[玩转系统] 服务器发生特殊Rpc错误

该证书未显示在列表视图中。证书已成功删除。

[玩转系统] 服务器发生特殊Rpc错误

我希望这篇文章可以帮助您修复服务器上显示的特殊 Rpc 错误。

了解更多:如何在 Exchange Server 中创建证书 »

结论

您了解了为什么显示服务器上发生特殊 Rpc 错误的错误。获取您要分配的证书的指纹。运行本文中所示的 cmdlet,将证书分配给 Exchange 服务。之后,删除旧证书。不再出现错误。

您喜欢这篇文章吗?如果是这样,您可能会喜欢在 Exchange Server 中安装免费的 Let’s Encrypt 证书。不要忘记关注我们并分享这篇文章。

您需要 登录账户 后才能发表评论

取消回复欢迎 发表评论:

关灯