windows2008 64bit里使用j-interop访问WMI有问题

tempbaby 2012-02-29 09:50:32
最近研究WINDOWS2008 下的HYPER-V,通过JAVA创建虚拟机.首先要通过JAVA远程调用WINDOWS2008的WMI,执行WMI里的SQL才可以.开源项目j-interop据说可以实现.按照提供的README.HTML配置,出现错误如下:

Recieved FAULT
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]

请问有没有遇到这样的问题的?
...全文
454 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
shixianao 2013-11-07
  • 打赏
  • 举报
回复
good 正解啊
-迷糊- 2012-03-20
  • 打赏
  • 举报
回复
楼主你好...我刚刚解决了这个问题..

按照下面步骤操作即可

1. Login to the target remote host as an Administrator.
2. Run the program Regedit
3. If you are asked to allow the Regedit program to make changes to the computer, click 'Yes'
4. Navigate to the Registry item HKEY_CLASSES_ROOT\CLSID\{YOUR CLSID HERE}
5. Right click on this item and select 'Permissions'
6. Click 'Advanced'
7. Select the 'Owner' tab
8. In the 'Change Owner to...' box, highlight the account you are currently logged in as.
9. Click 'Ok'
10. Click 'Ok'
11. Right click the registry item again and select 'Permissions'
12. Highlight the 'Administrators' group
13. Give 'Full Control' permissions to this group by checking the 'Allow' box
14. Click 'Ok'

1. Login to the target remote host as an Administrator.
2. Run the program Regedit
3. If you are asked to allow the Regedit program to make changes to the computer, click 'Yes'
4. Navigate to the Registry item HKEY_CLASSES_ROOT\CLSID\{YOUR CLSID HERE}
5. Right click on this item and select 'Permissions'
6. Click 'Advanced'
7. Select the 'Owner' tab
8. In the 'Change Owner to...' box, highlight the account you are currently logged in as.
9. Click 'Ok'
10. Click 'Ok'
11. Right click the registry item again and select 'Permissions'
12. Highlight the 'Administrators' group
13. Give 'Full Control' permissions to this group by checking the 'Allow' box
14. Click 'Ok'

1. Login to the target remote host as an Administrator.
2. Run the program Regedit
3. If you are asked to allow the Regedit program to make changes to the computer, click 'Yes'
4. Navigate to the Registry item HKEY_CLASSES_ROOT\CLSID\{YOUR CLSID HERE}
5. Right click on this item and select 'Permissions'
6. Click 'Advanced'
7. Select the 'Owner' tab
8. In the 'Change Owner to...' box, highlight the account you are currently logged in as.
9. Click 'Ok'
10. Click 'Ok'
11. Right click the registry item again and select 'Permissions'
12. Highlight the 'Administrators' group
13. Give 'Full Control' permissions to this group by checking the 'Allow' box
14. Click 'Ok'


CLSID是 76A6415B-CB41-11d1-8B02-00600806D9B6.
tempbaby 2012-03-02
  • 打赏
  • 举报
回复
没有人用过吗?真愁人!!!!

6,850

社区成员

发帖
与我相关
我的任务
社区描述
Windows 2016/2012/2008/2003/2000/NT
社区管理员
  • Windows Server社区
  • qishine
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧