Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #32038
| Date | 2012-10-24 14:11 +0100 |
|---|---|
| From | Tim Golden <mail@timgolden.me.uk> |
| Subject | Re: Is there a way to programmatically turn on remote registry? |
| References | (12 earlier) <5086BA1F.9090108@timgolden.me.uk> <CAN4UfGzrB8-P=ydCXiQ+rfJXn1kvfcpBHjz6eKctoY5Cz7HAJw@mail.gmail.com> <CAN4UfGzK2ndbaqaQyz4KUcTHcFEtbbHqtZGkfHL5XjyXPC7QmQ@mail.gmail.com> <5087D652.1080308@timgolden.me.uk> <CAN4UfGwv3Jgi-FGt5VbuPEfA5dft1DFofxQ5EX=12feHMif_cQ@mail.gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.2762.1351084311.27098.python-list@python.org> (permalink) |
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 comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Is there a way to programmatically turn on remote registry? Tim Golden <mail@timgolden.me.uk> - 2012-10-24 14:11 +0100
csiph-web