Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #32038 > unrolled thread
| Started by | Tim Golden <mail@timgolden.me.uk> |
|---|---|
| First post | 2012-10-24 14:11 +0100 |
| Last post | 2012-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.
Re: Is there a way to programmatically turn on remote registry? Tim Golden <mail@timgolden.me.uk> - 2012-10-24 14:11 +0100
| From | Tim Golden <mail@timgolden.me.uk> |
|---|---|
| Date | 2012-10-24 14:11 +0100 |
| Subject | Re: 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
Back to top | Article view | comp.lang.python
csiph-web