Java WMI Query operation fails by 'Could not access the target host registry.'

  • KM03083939
  • 31-Jan-2018
  • 21-May-2021

Summary

Java WMI Query operation may need more Windows registry configurations in a target WMI server side to work.

Error

In some Windows environment, a Java WMI Query operation like '/Base [1.x.x]/Library/Operations/WMI/Java/WMI Query' fails with the following error message:

Could not access the target host registry. In most cases this can be fixed by starting the "Server" and "Remote Registry" services on the target host.

Cause

In a target WMI server side, some more settings in OS level may be needed.

Fix

In such a case, make sure to follow instructions explained in the 'Property' page of the '/Base [1.x.x]/Library/Operations/WMI/Java' folder.

If the same error is observed even after following them, try the two modifications of Windows Registry in a target Winnows node:

- Add the following value to {76A64158-CB41-11D1-8B02-00600806D9B6} key in HKEY_CLASSES_ROOT\CLSID\:

  Value name: AppID
  Value data: {76A64158-CB41-11D1-8B02-00600806D9B6}

- Add the following key and value(name only, without value data) in HKEY_CLASSES_ROOT\AppID\

  key: {76A64158-CB41-11D1-8B02-00600806D9B6}
  Value name: DllSurrogate
  Value data: (empty)