<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<a class="moz-txt-link-abbreviated" href="mailto:python-win32-request@python.org">python-win32-request@python.org</a> wrote:
<blockquote
 cite="mid:mailman.25.1272103206.1674.python-win32@python.org"
 type="cite">
  <pre wrap="">Send python-win32 mailing list submissions to
        <a class="moz-txt-link-abbreviated" href="mailto:python-win32@python.org">python-win32@python.org</a>

To subscribe or unsubscribe via the World Wide Web, visit
        <a class="moz-txt-link-freetext" href="http://mail.python.org/mailman/listinfo/python-win32">http://mail.python.org/mailman/listinfo/python-win32</a>
or, via email, send a message with subject or body 'help' to
        <a class="moz-txt-link-abbreviated" href="mailto:python-win32-request@python.org">python-win32-request@python.org</a>

You can reach the person managing the list at
        <a class="moz-txt-link-abbreviated" href="mailto:python-win32-owner@python.org">python-win32-owner@python.org</a>

When replying, please edit your Subject line so it is more specific
than "Re: Contents of python-win32 digest..."


Today's Topics:

   1. get installed software remote machine (pacopyc)
   2. Re: get installed software remote machine (Tim Golden)


----------------------------------------------------------------------

Message: 1
Date: Fri, 23 Apr 2010 16:56:35 +0200
From: pacopyc <a class="moz-txt-link-rfc2396E" href="mailto:pacopyc@gmail.com">&lt;pacopyc@gmail.com&gt;</a>
To: <a class="moz-txt-link-abbreviated" href="mailto:python-win32@python.org">python-win32@python.org</a>
Subject: [python-win32] get installed software remote machine
Message-ID: <a class="moz-txt-link-rfc2396E" href="mailto:4BD1B523.1030801@gmail.com">&lt;4BD1B523.1030801@gmail.com&gt;</a>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Hi, one question for you? Or better .. another question for you?
I'm trying to get installed software on remote host with Win32_Product().
The problem is that don't list all installed software (much but not 
all). Why?
What must I use to get all installed software?

Thank you very much

Can you answer my last post "set password administrator host"?
Is not possible do it?




------------------------------

Message: 2
Date: Fri, 23 Apr 2010 16:03:21 +0100
From: Tim Golden <a class="moz-txt-link-rfc2396E" href="mailto:mail@timgolden.me.uk">&lt;mail@timgolden.me.uk&gt;</a>
Cc: <a class="moz-txt-link-abbreviated" href="mailto:python-win32@python.org">python-win32@python.org</a>
Subject: Re: [python-win32] get installed software remote machine
Message-ID: <a class="moz-txt-link-rfc2396E" href="mailto:4BD1B6B9.8050909@timgolden.me.uk">&lt;4BD1B6B9.8050909@timgolden.me.uk&gt;</a>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

On 23/04/2010 15:56, pacopyc wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">Hi, one question for you? Or better .. another question for you?
I'm trying to get installed software on remote host with Win32_Product().
The problem is that don't list all installed software (much but not
all). Why?
What must I use to get all installed software?
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Have a look at Mike Driscoll's article:

<a class="moz-txt-link-freetext" href="http://www.blog.pythonlibrary.org/2010/03/03/finding-installed-software-using-python/">http://www.blog.pythonlibrary.org/2010/03/03/finding-installed-software-using-python/</a>

  </pre>
  <blockquote type="cite">
    <pre wrap="">Can you answer my last post "set password administrator host"?
Is not possible do it?
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Does this take you anywhere?

<a class="moz-txt-link-freetext" href="http://blogs.technet.com/heyscriptingguy/archive/2004/10/15/how-can-i-change-a-user-s-password.aspx">http://blogs.technet.com/heyscriptingguy/archive/2004/10/15/how-can-i-change-a-user-s-password.aspx</a>

TJG


------------------------------

_______________________________________________
python-win32 mailing list
<a class="moz-txt-link-abbreviated" href="mailto:python-win32@python.org">python-win32@python.org</a>
<a class="moz-txt-link-freetext" href="http://mail.python.org/mailman/listinfo/python-win32">http://mail.python.org/mailman/listinfo/python-win32</a>


End of python-win32 Digest, Vol 85, Issue 27
********************************************

  </pre>
</blockquote>
Ok, thank you very much. Very good with set administrator password (it
works), but I've problem with installed software. The list is not
complete (I don't understand). For example key "Adobe Flash Player
ActiveX" return this error:<br>
<br>
<pre wrap="">Traceback (most recent call last):
  File "&lt;pyshell#49&gt;", line 1, in &lt;module&gt;
    key = OpenKey(HKEY_LOCAL_MACHINE,
'Software\Microsoft\Windows\CurrentVersion\Uninstall\Adobe Flash Player ActiveX', 0, KEY_ALL_ACCESS)
WindowsError: [Error 2] Impossibile trovare il file specificato (Impossible find file)</pre>
<br>
But key "Software\MicrosoftWindowsCurrentVersion\Uninstall\Adobe Flash
Player ActiveX" exists.<br>
What's the problem? The spaces? I don't think so.<br>
<br>
This is the code:<br>
<br>
<pre wrap="">import wmi
from _winreg import (HKEY_LOCAL_MACHINE, KEY_ALL_ACCESS, OpenKey, EnumValue, QueryValueEx)

host='XXXX'
reg = wmi.WMI(host,namespace="root/default").StdRegProv
result, names = reg.EnumKey (hDefKey=HKEY_LOCAL_MACHINE,sSubKeyName=r"Software\Microsoft\Windows\CurrentVersion\Uninstall")
keyPath = r"Software\Microsoft\Windows\CurrentVersion\Uninstall"
count = 0
while count &lt;= len(names):
    try:
        print names[count]
        path = keyPath + "\\" + names[count]
        key = OpenKey(HKEY_LOCAL_MACHINE, path, 0, KEY_ALL_ACCESS)
        temp = QueryValueEx(key, 'DisplayName')
        display = str(temp[0])
        print names[count]+" -&gt; "+display
        count += 1
    except:
        count += 1
        continue

</pre>
<br>
Thanks again<br>
</body>
</html>