[python-win32] Finding installed softwares on the remote mach
ine using WMI
Tim Golden
tim.golden at viacom-outdoor.co.uk
Fri Jul 4 09:49:02 EDT 2003
First of all, get hold of this module:
http://tgolden.sc.sabren.com/python/wmi.html
<http://tgolden.sc.sabren.com/python/wmi.html>
Then do something like this:
<code>
computer = wmi.WMI () # or wmi.WMI ("other_computer")
for product in computer.Win32_Product ():
print product.Caption, product.Description
</code>
I'm not an WMI expert; we use it for a bit of day-to-day database
checking; if you want to know the innards of WMI classes, better
Google for things like "WMI installed software".
HTH
TJG
-----Original Message-----
From: sudhir chauhan [mailto:sudhirchauhan1 at yahoo.co.in]
Sent: 04 July 2003 05:32
To: Python Win32 (E-mail)
Subject: [python-win32] Finding installed softwares on the remote machine
using WMI
Hi,
I am trying to write a script which can access the remote windows 2000/XP
machines and read all the installed software using WMI in python.
I dont know how to proceed on this . I have some experience in python on
unix and some exposure to WMI. Any pointer will be very help ful.
regards,
sudhir
Yahoo! India Mobile <http://in.yimg.com/i/in/mobile/pctomob.gif>
<http://in.mobile.yahoo.com/new/pc/> SMS using the Yahoo!
<http://in.mobile.yahoo.com/new/pc/> Messenger; Download
<http://in.messenger.yahoo.com/> latest version.
________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk <http://www.star.net.uk>
________________________________________________________________________
________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-win32/attachments/20030704/c6d4427e/attachment.htm
More information about the Python-win32
mailing list