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
推荐答案
检查Remote Procedure Call (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:
- Microsoft KB for limiting ports
- McAfee site talking about the same thing
这篇关于RPC服务器不可用. (来自HRESULT的异常:0x800706BA)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!