[python-win32] Detect whether a workstation is a laptop or desktop/server?

python at bdurham.com python at bdurham.com
Sat Mar 6 19:59:21 CET 2010


Steve,

Those are some great ideas! I'll give it a shot and see what
works for us.

Thanks for your help,

Malcolm



----- Original message -----
From: "Steven James" <steven.james at gmail.com>
To: python-win32 at python.org
Date: Sat, 6 Mar 2010 10:17:43 -0500
Subject: Re: [python-win32] Detect whether a workstation is a
laptop or desktop/server?
Not sure exactly, but perhaps you could distinguish whether the
battery is connected via USB or some other transport method?
Looking through the device manager there seem to be some fields
that might be relevant. As a network admin, I've used a free
software called Spiceworks in the past that scans our network and
classifies machines. Does a decent job and seems to use the
model-database technique.
Other ways might be...does the machine have a PCMCIA slot? does
it have built-in wifi/bluetooth? A 5400RPM hard drive? These
aren't assurances, but they point to laptops.
Well I think that's every way possible of not answering your
question. Sorry =).
SJ
On Sat, Mar 6, 2010 at 10:00 AM, <[1]python at bdurham.com> wrote:

  Hi Roberto.
  > I assume you could categorize a computer as a laptop or
  desktop once you knew the machine's make an model.
  Unfortunately, we're a start-up company with an entirely
  random mix of
  computers from what seems like every vendor possible. I'm not
  sure where
  I would find a database for some of the machines we have.
  I'm hoping that there's a WMI property that allows me to
  distinguish
  between a laptop battery and an external UPS. (I've been
  looking, but my
  google-fu is failing me).
  Thanks for your help,
  Regards,
  Malcolm
  _______________________________________________
  python-win32 mailing list
  [2]python-win32 at python.org
  [3]http://mail.python.org/mailman/listinfo/python-win32

_______________________________________________
python-win32 mailing list
python-win32 at python.org
http://mail.python.org/mailman/listinfo/python-win32

References

1. mailto:python at bdurham.com
2. mailto:python-win32 at python.org
3. http://mail.python.org/mailman/listinfo/python-win32
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20100306/fe3f854b/attachment.html>


More information about the python-win32 mailing list