`

WMI权限问题:Access is denied, please check whether the [domain-username-password] ..

阅读更多

错误信息:

org.jinterop.dcom.common.JIException: Access is denied, please check whether the [domain-username-password] are correct. Also, if not already done please check the GETTING STARTED and FAQ sections in readme.htm. They provide information on how to correctly configure the Windows machine for DCOM access, so as to avoid such exceptions.  [0x00000005]
at org.jinterop.winreg.smb.JIWinRegStub.winreg_OpenKey(JIWinRegStub.java:197)
at org.jinterop.dcom.core.JIProgId.getIdFromWinReg(JIProgId.java:131)
at org.jinterop.dcom.core.JIProgId.getCorrespondingCLSID(JIProgId.java:162)
at org.jinterop.dcom.core.JIComServer.<init>(JIComServer.java:413)
at com.feng.test.MavenTest.AppTest.connect(AppTest.java:90)
at com.feng.test.MavenTest.AppTest.main(AppTest.java:136)
Caused by: org.jinterop.dcom.common.JIRuntimeException: Access is denied, please check whether the [domain-username-password] are correct. Also, if not already done please check the GETTING STARTED and FAQ sections in readme.htm. They provide information on how to correctly configure the Windows machine for DCOM access, so as to avoid such exceptions.  [0x00000005]
at org.jinterop.winreg.IJIWinReg$openKey.read(IJIWinReg.java:939)
at ndr.NdrObject.decode(NdrObject.java:36)
at rpc.ConnectionOrientedEndpoint.call(ConnectionOrientedEndpoint.java:137)
at rpc.Stub.call(Stub.java:113)
at org.jinterop.winreg.smb.JIWinRegStub.winreg_OpenKey(JIWinRegStub.java:191)
... 5 more
解决方法:

Access is denied error

When you get an

"Access is denied. [0x00000005]"
error, apply the following patch to the registry:

 

  • HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System
  • create or modify 32-bit DWORD: LocalAccountTokenFilterPolicy
  • set the value to: 1

Credit to Arturas Sirvinskas (comments below)

 

参考:https://wiki.jenkins-ci.org/display/JENKINS/Windows+slaves+fail+to+start+via+DCOM

分享到:
评论
1 楼 大侠在wc15_177 2018-04-03  
useful
thanks

相关推荐

    wmi-1.3.14-4.el7.art.x86_64.rpm

    wmic 安装命令:yum install wmi-1.3.14-4.el7.art.x86_64.rpm

    wmi-1.3.14.tar.bz2

    linux通过 WMI 对windows进行监控和管理 ,window不需要开启服务,Linux 安装wmic

    sqlserver卸载清除工具.zip

    原因可能是语义错误(例如,与现有 WMI 知识库不兼容)或实际错误(例如,WMI 服务器启动失败)。 有关帮助信息,请单击: ...

    Python库 | wpm-1.51.1-py2.py3-none-any.whl

    Python库是开发者在编程时经常会使用到的工具,它们提供了丰富的功能,可以帮助程序员高效地完成各种任务。在本文中,我们将深入探讨`wpm-1.51.1-py2.py3-none-any.whl`这个Python库,了解其含义、用途以及如何在...

    BURNINTEST--硬件检测工具

    - Changed the mechanism to check for the required DirectX Direct3D as the previous method did not work on some system (some W2003 servers). - Enhanced the mechanism to report memory hardware errors ...

    开始运行命令大全.doc

    wmimgmt.msc----打开windows管理体系结构(WMI)41. wupdmgr--------windows更新程序42. wscript--------windows脚本宿主设置43. write----------写字板44. winmsd---------系统信息45. wiaacmgr-------扫描仪和...

    WMI-1.4.9.win32-2003-2008.rar

    标题中的"WMI-1.4.9.win32-2003-2008.rar"表明这是一个关于Windows Management Instrumentation(WMI)的软件包,版本为1.4.9,适用于32位的Windows操作系统,特别是Windows Server 2003和2008。描述中提到,这个...

    WMI.rar_wmi

    此外,文件可能还包含了如何检查WMI服务是否启动以及如何解决WMI相关问题的提示。 总的来说,WMI是Windows系统管理和自动化的重要工具,它提供了丰富的接口供管理员和开发者使用,极大地提高了工作效率。通过理解并...

    使用WMI获取硬件信息程序 C# 源代码

    主板信息: -------- 主板名称 主板序列号 CPU信息: -------- CPU品牌及型号 CPU序列号 CPU主频 CPU二级缓存 曲线图显示CPU使用率 硬盘信息: --------- 硬盘型号 硬盘序列号 ...电池剩余容量显示

    WMI-Class-Library.zip_WMI Class_wmi

    在提供的压缩包 `WMI-Class-Library.zip` 中,有两个关键文件: 1. **WMI Namespace.chm**:这是一个帮助文件,通常包含了关于 WMI 名空间的详细文档。WMI 名空间类似于一种组织结构,它将相关的 WMI 类分组在一起...

    WMI-1.5.1-py2.py3-none-any.whl

    wmi库离线安装包 pip install WMI-1.5.1-py2.py3-none-any.whl

    wmi.rar_C# WMI_windows wmi_wmi_wmi proerties

    6. 异常处理:在执行WMI操作时,可能会遇到权限不足、查询语法错误等问题。因此,使用try-catch语句进行异常处理是非常必要的。 总的来说,C#中的WMI编程允许开发者以编程方式访问和控制Windows系统,实现监控、...

    WMI-1.4.7.win32

    `WMI-1.4.7.win32.exe` 是一个适用于Windows 32位系统的WMI库的安装包,可能是由第三方或者社区成员提供的,因为官方下载渠道不易找到,所以这个版本可能比较珍贵。 在Python中使用WMI库通常需要以下步骤: 1. **...

    dell-wmi-aio--.rar_All for One

    标题中的“dell-wmi-aio--.rar_All for One”表明这是一个针对戴尔(Dell)一体机(All-In-One,AIO)系列的Windows Management Instrumentation (WMI)驱动或工具包。WMI是微软提供的一个核心组件,它允许系统管理员...

    使用j-Interop实现java连接wmi获取windows系统信息的例子

    此外,由于WMI访问涉及到系统权限,确保运行Java应用的用户有足够的权限是非常重要的。 在实际开发中,可能还需要处理异常,优化性能,以及根据具体需求选择合适的WMI类和属性。在提供的`WmiTest1`源代码中,应包含...

    prometheus-2.32.1.windows-amd64 解压就能用-windows平台

    - **性能监控**:Windows环境下的监控可能需要额外的适配,例如使用适配Windows的Exporter(如WMI Exporter)来暴露系统级别的性能指标。 总的来说,Prometheus提供了一套强大且灵活的监控解决方案,这个Windows...

    wmi脚本入门----------------

    1. **权限管理**:WMI操作可能需要特定的权限,确保脚本运行时有足够的权限访问目标资源。 2. **缓存和性能**:合理使用WMI的缓存机制,避免频繁查询导致的性能问题。 ### 学习资源 - Microsoft官方文档提供了详细...

    WMI.rar_CSharp wmi_wmi

    7. **错误处理和权限**:理解WMI操作可能遇到的错误类型,并学会处理权限问题,例如提升应用程序的管理员权限。 8. **性能计数器**:如何通过WMI访问和分析系统的性能数据,例如CPU使用率、内存使用情况等。 9. **...

Global site tag (gtag.js) - Google Analytics