The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)
来源:互联网 发布:阿里云1元大学生服务器 编辑:程序博客网 时间:2024/06/06 07:31
在用powershell运行脚本调用WMI远程启动机器的时候碰到的:
"The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)" error may occurs when deploying VNC to a remote computer or when using built-in management tools.
There can be a few reasons for this error:
The remote computer is blocked by the firewall.
Solution: Open the Group Policy Object Editor snap-in (gpedit.msc) to edit the Group Policy object (GPO) that is used to manage Windows Firewall settings in your organization. Open Computer Configuration, open Administrative Templates, open Network, open Network Connections, open Windows Firewall, and then open either Domain Profile or Standard Profile, depending on which profile you want to configure. Enable the following exception: "Allow Remote Administration Exception" and "Allow File and Printer Sharing Exception".
Host name or IP address is wrong or the remote computer is shutdown.
Solution: Verify correct host name or IP address.
The "TCP/IP NetBIOS Helper" service isn't running.
Solution: Verity that "TCP/IP NetBIOS Helper" is running and set to auto start after restart.
The "Remote Procedure Call (RPC)" service is not running on the remote computer.
Solution: Verity that "Remote Procedure Call (RPC)" is running and set to auto start after restart.
The "Windows Management Instrumentation" service is not running on the remote computer.
Solution: Verity that "Windows Management Instrumentation" is running and set to auto start after restart.
第一个解决方法基本可以解决问题的。下面是调用WMI远程重启机器的脚本
# Define input parametersparam ( [string] $filename = $(throw "Filename is required!"))Write-Host "Reading computer names from $filename"# Read file$computers = get-content $filenamewrite-Host "Restarting computers:"$computersforeach ($computer in $computers) { # Connect to WMI $wmi = get-wmiobject -class "Win32_OperatingSystem" ` -namespace "root\cimv2" -computer $computer # Add privileges #$wmi.psbase.Scope.Options.EnablePrivileges = $true # Restart computer foreach ($item in $wmi) { $wmi.reboot() write-host "Restarted " + $computer }}
- The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)
- 关于 The RPC server is unavailable
- RPC 服务器不可用。 (异常来自 HRESULT:0x800706BA)
- Windows Server Troubleshooting: "The RPC server is unavailable"
- 打印机报错“The RPC server is unavailable”解决办法
- Exception from HRESULT: 0x800A03EC
- Exception from HRESULT: 0x80131904
- Exception from HRESULT: 0x800A03EC
- Exception from HRESULT: 0x80041FE2
- 关于"RPC server is unavailable"的解决方案
- 关于"RPC server is unavailable"的解决方案
- Error response from daemon: rpc error: code = 14 desc = grpc: the connection is unavailable
- Mercury公司相关产品的"The RPC server is unavailable"完整解决方案
- 快速解决登录TD时错误提示“the rpc server is unavailable”
- TestDirector 8.0(TD)在IE中打开提示The RPC server is unavailable
- 用wmi连接远程服务器时提示:“RPC 服务器不可用。 (异常来自 HRESULT:0x800706BA)”的解决方法
- The specified moduld could not be found.(Exception from HRESULT:0X8007007E
- [转]The specified module could not be found. (Exception from HRESULT: 0x8007007E)
- Notepad++编辑Pyhton文件的自动缩进的问题(图文)
- 配置oracle stream(step by step setup schema level Streams Replication)
- android 将文字转为为图片
- hdu 4358树状数组
- winXP 设置默认启动系统!
- The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)
- 词汇单一
- Vim命令
- Ext4 下拉菜单树
- jboss xxx is already registered
- log4j通过SocketAppender将日志内容发送到远程服务器
- jquery 事件机制
- Struts2数据传输的背后机制:ValueStack(值栈)(转载)
- Email邮件头(邮件发送原理、INTERNET邮件头)揭密