Dear all, I'm trying to query registry values that exist on target machine(I checked manually). The function "wmi_connect_reg" succeeded, and return the handle. Then I try to call function "wmi_reg_enum_key", "wmi_reg_get_sz", "wmi_reg_get_dword_val", none of these work. Error message is : WMI query failed. The test script is attached.
I configured the target machine as follows: 1. Turned off firewall 2. Run "wmimgmt.msc" -> WMI control -> properties enabled "remote enable" for namespace "root", "rsop", "default', "cimv2" 3. Started service "Remote registry" 4. Run "dcomcfng" ->Component services -> computers -> my computer -> properties -> com security ->grant remote access to "access permissions" and "launch and activate permission." Environment: openvas libraries 6.0.0 wmi 1.3.14 target machine os: Windows 7 Ultimate in a domain Does anyone know if it's a problem with the wmi functions or target machine configuration for query registry over wmi? Any help will be very appreciated. *--* *Yanjin Ding*
wmi_reg_test.nasl
Description: Binary data
_______________________________________________ Openvas-devel mailing list Openvas-devel@wald.intevation.org https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-devel