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: 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 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 Subject: Re: Is there a way to programmatically turn on remote registry? References: <508560AC.2080307@timgolden.me.uk> <50859EA6.7020602@timgolden.me.uk> <50865052.3030108@timgolden.me.uk> <508691F2.6070001@timgolden.me.uk> <5086BA1F.9090108@timgolden.me.uk> <5087D652.1080308@timgolden.me.uk> In-Reply-To: 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 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): 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) TJG