We use WmiSet to do Wmi Queries on remote machines. It works very well in Delphi 2007 but is not currently available for Delphi XE.
I found some code to do Wmi Queries from a previous SO Question Use Wmi with Delphi. The code snippet provided in Answer No. 5 works perfectly well on my local machine, but I need to know if it is possible to execute the Wmi Query on a remote machine.
Even if I connect to the remote machine with my Administrator credentials, I get a EOleSysError: Access is denied exception.
Regards, Pieter.
Pieter. Before to connect to a remote machine using the WMI you must enable the DCOM access to the specified user in the remote machine.
Read these articles to understand and fix problems connecting to remote machines using the WMI.
Connecting to WMI Remotely Starting with Windows VistaTroubleshooting Error Code 80070005 - Access Denied(great page to find solution about connections problems)Additionally here i leave a more clear code to connect to the wmi in a remote machine. check the part where the
EOleExceptionexception is processed to get the error code and found the cause of the issue.