I have a question wmi4java lib: Can it connect to a remote Win machine and run WMI queries there? Searched the documentation and even looked at source code of the main class and found nothing that points to remote connection with authentication.
The github page gives no examples on connecting to a remote machine: https://github.com/profesorfalken/WMI4Java
and javadoc for Class WMI4Java mentions localhost only:
https://jar-download.com/java-documentation-javadoc.php?a=WMI4Java&g=com.profesorfalken&v=1.6
e.g: WMI4Java.get().computerName(".").namespace("root/cimv2").getWMIObject("Win32_BaseBoard");
If I specify another host (aka computerName("10.10.172.214")...) it will obviously throw exception since it found no credential.
I know this lib uses internally jPowerShell so there must be a way. Thank you.