Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #32038 > unrolled thread

Re: Is there a way to programmatically turn on remote registry?

Started byTim Golden <mail@timgolden.me.uk>
First post2012-10-24 14:11 +0100
Last post2012-10-24 14:11 +0100
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Is there a way to programmatically turn on remote registry? Tim Golden <mail@timgolden.me.uk> - 2012-10-24 14:11 +0100

#32038 — Re: Is there a way to programmatically turn on remote registry?

FromTim Golden <mail@timgolden.me.uk>
Date2012-10-24 14:11 +0100
SubjectRe: Is there a way to programmatically turn on remote registry?
Message-ID<mailman.2762.1351084311.27098.python-list@python.org>
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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web