RPC 服务器不可用.(来自 HRESULT 的异常:0x800706BA) [英] The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)
问题描述
在远程计算机上工作时,我偶尔会收到此错误.我在哪台计算机上安装了它.但我能够 ping 计算机并测试连接成功.例如,我今天收到此错误的计算机我昨天可以访问.我知道电脑开着,因为它就在我旁边.
Occasionally I get this error when working on remote computers. It's hit or miss on which computer I get it on. But I am able to ping the computer and test-connection pans out. For example, the computer I got this error on today I was able to get to yesterday. I know the computer is on because It's right next me.
Get-WmiObject : The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)
At line:1 char:14
+ get-wmiObject <<<< -Class win32_operatingsystem -ComputerName $current -Authentication 6 -credential $credential | Invoke-WMIMethod -name Win32Shutdown
+ CategoryInfo : InvalidOperation: (:) [Get-WmiObject], COMException
+ FullyQualifiedErrorId : GetWMICOMException,Microsoft.PowerShell.Commands.GetWmiObjectCommand
推荐答案
检查 远程过程调用 (RPC)
服务是否正在运行.如果是,那么这是您的工作站和服务器之间的防火墙问题.您可以通过暂时禁用防火墙并重试命令来测试它.
Check to see if the Remote Procedure Call (RPC)
service is running. If it is, then it's a firewall issue between your workstation and the server. You can test it by temporary disabling the firewall and retrying the command.
评论后
好的,这是防火墙问题.您必须限制 WMI/RPC 工作的端口,或者在 McAfee 防火墙中打开大量端口.
Ok, it's a firewall issue. You'll have to either limit the ports WMI/RPC work on, or open a lot of ports in the McAfee firewall.
这里有几个网站解释了这一点:
Here are a few sites that explain this:
这篇关于RPC 服务器不可用.(来自 HRESULT 的异常:0x800706BA)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!