Is there a way to programmatically turn on remote registry?

Tim Golden mail at timgolden.me.uk
Wed Oct 24 09:11:46 EDT 2012


On 24/10/2012 13:36, Kevin Holleran wrote:
> Here is the output as you requested.  Again thanks for your time & help.
>  I hate monopolizing one person's time so much....

Heh. Everyone else is welcome to chip in :)

Ok, try specifying the parameter names. (I remember someone having
problems before caused by mismatched param order):

<code>
import wmi
import _winreg as winreg

host = "..."
HKLM = winreg.HKEY_LOCAL_MACHINE
NICs =
"SYSTEM\\CurrentControlSet\\Control\\Class\\{4D36E972-E325-11CE-BFC1-08002bE10318}"

registry = wmi.WMI(host, namespace="default").StdRegProv
registry.EnumKey(hDefKey=HKLM, sSubKeyName=NICs)

</code>

TJG



More information about the Python-list mailing list