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


Groups > comp.lang.python > #32038

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

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <mail@timgolden.me.uk>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.001
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'output': 0.04; 'parameter': 0.07; "person's": 0.09; 'requested.': 0.09; 'skip:" 80': 0.09; 'specifying': 0.09; 'cc:addr:python-list': 0.10; '"..."': 0.16; 'from:addr:timgolden.me.uk': 0.16; 'from:name:tim golden': 0.16; 'message-id:@timgolden.me.uk': 0.16; 'param': 0.16; 'received:74.55.86': 0.16; 'received:74.55.86.74': 0.16; 'received:smtp.webfaction.com': 0.16; 'received:webfaction.com': 0.16; 'registry': 0.16; 'tjg': 0.16; 'wmi': 0.16; 'wrote:': 0.17; 'import': 0.21; 'names.': 0.22; 'help.': 0.22; 'cc:2**0': 0.23; 'kevin': 0.23; 'cc:no real name:2**0': 0.24; 'host': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'header :User-Agent:1': 0.26; 'received:192.168.100': 0.33; 'everyone': 0.33; 'thanks': 0.34; 'subject:?': 0.35; 'problems': 0.36; 'ok,': 0.37; 'subject:: ': 0.38; 'received:192': 0.39; 'received:192.168': 0.40; 'your': 0.60; 'here': 0.65; 'subject:there': 0.65; 'skip:n 30': 0.69; 'from:addr:mail': 0.71; 'heh.': 0.84; 'hate': 0.93
Date Wed, 24 Oct 2012 14:11:46 +0100
From Tim Golden <mail@timgolden.me.uk>
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20120907 Thunderbird/15.0.1
MIME-Version 1.0
To Kevin Holleran <kdawg44@gmail.com>
Subject Re: Is there a way to programmatically turn on remote registry?
References <CAN4UfGy6dkdtKiQ+ghh7=CirS9Lca8DOrHvEiKRefgWUSwVFDA@mail.gmail.com> <CAN4UfGx1JEzaTm_hKLH8Mf1N9qCB_d9qtNUTupFCkctUGaB2wQ@mail.gmail.com> <c1t3881ofvciftl2pjpkkm4cfjeacvftkj@invalid.netcom.com> <CAN4UfGzz81jvkzMByhQ3MAjpdFT_eNy9oRfcwa2j_PGFpoTePw@mail.gmail.com> <508560AC.2080307@timgolden.me.uk> <CAN4UfGxLZXuR8VdzpunASfqudJVyp=Zds36evud-3cAy9cD2xw@mail.gmail.com> <50859EA6.7020602@timgolden.me.uk> <CAN4UfGynWcuq1nW=_9OKfOki-7hENCF6SRN5BtN60wyxFt0U6w@mail.gmail.com> <50865052.3030108@timgolden.me.uk> <CAN4UfGz9+wrBmCHQVWxiKPhvHGVHDSpo64Qmj_9yC=ia_2eeFw@mail.gmail.com> <508691F2.6070001@timgolden.me.uk> <CAN4UfGwPgV6GYkWUPcmUqTeO_2HXxSWk5eB8wqbd6zQ-8iqLFw@mail.gmail.com> <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>
In-Reply-To <CAN4UfGwv3Jgi-FGt5VbuPEfA5dft1DFofxQ5EX=12feHMif_cQ@mail.gmail.com>
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding 7bit
Cc python-list@python.org
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.2762.1351084311.27098.python-list@python.org> (permalink)
Lines 24
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1351084311 news.xs4all.nl 6861 [2001:888:2000:d::a6]:34883
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:32038

Show key headers only | View raw


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


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