WMI in Python

bli blye at telkomsa.net
Tue Sep 14 15:20:28 EDT 2010


On Sep 14, 7:46 am, KING LABS <kinglabs... at gmail.com> wrote:
> On Sep 14, 10:39 am, KING LABS <kinglabs... at gmail.com> wrote:
>
>
>
>
>
>
>
>
>
> > On Sep 13, 8:31 pm, Jerry Hill <malaclyp... at gmail.com> wrote:
>
> > > On Mon, Sep 13, 2010 at 8:45 AM, KING LABS <kinglabs... at gmail.com> wrote:
> > > > Hi All,
>
> > > > I am new to programming and python, Being a system administrator I
> > > > have chose Inventory (Software & Hardware ) as my first project.
>
> > > You'll probably want to look at the python WMI module:http://timgolden.me.uk/python/wmi/index.html
>
> > > as well as the pywin32 module:http://sourceforge.net/projects/pywin32/
>
> > > IIRC, there's been quite a bit of discussion about inventorying
> > > installed software on the pywin32 mailing list:http://mail.python.org/mailman/listinfo/python-win32
>
> > > --
> > > Jerry
>
> > Thank you all, I will go through the links provided and suggestions.
> > Shall get back to you on this soon.
>
> The following information is exactly what I am trying to collect for
> the inventory. I can find vb scripts with googling. I want to do the
> same with Python & Win32. Use Server/Client architecture .
> Client(agent) updates the information to server.
>
> ----------------------------------------------------------------------------------------
>
> BIOS:
>
> System serial number, manufacturer, and model
> Bios manufacturer, version, and date
>
> Processors:
>
> Type, count (how many of them), manufacturer, speed, and cache
>
> Memory:
>
> Physical memory type, manufacturer, capacity, and slot number
> Total physical memory
> Total swap/paging memory
>
> Video:
>
> Video adapter: Chipset/model, manufacturer, memory size, speed, and
> screen resolution
>
> Display monitor: Manufacturer, description, refresh rate, type, serial
> number, and caption
>
> Storage/removable devices:
>
> Manufacturer, model, size, type, speed( all when applicable)
>
> Drive letter, filesystem type, partition/volume size, free space
>
> Network adapters/telephony:
>
> Manufacturer, model, type, speed, and description
> MAC and IP address, mask and IP gateway, DHCP server used
>
> Miscellaneous hardware:
>
> Input devices: Keyboard, mouse, and pointing device
> Sound devices: Manufacturer name, type, and description
> System slots: Name, type, and designation
> System ports: Type, name, caption, and description
>
> Software Information: ( from registry & add/remove program )
>
> Operating system: Name, version, comments, and registration info
> Installed software: Name, publisher, version (from Add / Remove
> software or Programs and Features menu)
> Custom-specified registry queries (applicable to Windows OS)
>
> ------------------------------------------------------------------------------------------------------------------

when I found Python :-) I downloaded from a Ms site many (+- 120)  py
programs for hardware and os stuff and collated them into one script.
Astonishing amount of data in the innards of a computer, do not print
some of these!@#!
I meant to wrap it in a neat menu (any time now), but it is easy to
use as is.
A few of the options :
102 --- -List Terminal Services Terminals-
   103 --- -List Terminal Services Permissions-
   104 --- -List Terminal Services Session Settings-
   105 --- - List Terminal Services Session Directory Settings-
   106 --- - List Terminal Services Network Adapter-
   107 --- -List Terminal Services Environment Settings-
   108 --- -List Terminal Services Logon Settings-
   109 --- -List Terminal Services General Settings-
   110 --- -List Terminal Services Client Settings-
   111 --- -List Terminal Services Terminal Settings-
   112 --- -List Terminal Service Service Properties-
   113 --- -List Info about Binary Files used on Computer-
   114 --- -List Info about CODECS on this computer-
   115 --- -List Installed Software-
   116 --- -List Installed Software Features-

Happy to send to you, will post it somewhere soon.



More information about the Python-list mailing list