简体   繁体   English

J-互操作不起作用通过WMI监测的Win7

[英]j-interop does not work to monitor Win7 via WMI

I used j-interop to monitor Windows system via WMI in Java. 我使用j-interop通过Java中的WMI监视Windows系统。 It does work for monitoring remote WinXP from both Windows and Linux client. 它确实可以从Windows和Linux客户端监视远程WinXP。 But it does not work to remotely monitor Windows7 from both Windows and Linux client. 但是,无法同时从Windows和Linux客户端远程监视Windows7。 I also checked with OpenNMS, it also used j-interop and does not work for Win7 too. 我还检查了OpenNMS,它也使用了j-interop,但对Win7也不起作用。 My questions are: 我的问题是:

  1. Is there any workaround to let j-interop work for monitoring Windows7? 有什么解决方法可以让j-interop监视Windows7?
  2. Is there any other java library works cross-platform without the Windows 7 issue?I have tested JACOB, it does work for Windows7, but it is notcross-platform. 没有其他的Java库可以在没有Windows 7问题的情况下跨平台工作?我已经测试了JACOB,它确实适用于Windows7,但不是跨平台的。
  1. Launch 'regedit.exe' as 'Administrator' 以“管理员”身份启动“ regedit.exe”
    1. Find the following registry key: 'HKEY_CLASSES_ROOT\\CLSID{76A64158-CB41-11D1-8B02-00600806D9B6}' 找到以下注册表项:'HKEY_CLASSES_ROOT \\ CLSID {76A64158-CB41-11D1-8B02-00600806D9B6}
    2. Right click and select 'Permissions' 右键单击并选择“权限”
    3. Click the 'Advanced' button. 点击“高级”按钮。
    4. Select the tab labeled 'Owner' 选择标签为“所有者”的标签
    5. Add the user you want to allow to connect to the owners list 添加您要允许其连接到所有者列表的用户
    6. Click the 'Ok' button. 点击“确定”按钮。
    7. Now highlight the user and grant Full Control 现在突出显示用户并授予完全控制权
    8. Click 'Ok' 点击“确定”

Retrieved from "http://www.opennms.org/wiki/WmiConfiguration"; 取自“ http://www.opennms.org/wiki/WmiConfiguration”;

I have tested that it did work for Win7 我已经测试过它确实适用于Win7

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM