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

2010-03-07 Thread python
Preston, Tony, and Steven, I found the following WMI class which sounds like it might be useful. Determine whether a computer is a tower, a mini-tower, a laptop, and so on by using the Win32_SystemEnclosure class and checking the value of the ChassisType property.

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

2010-03-06 Thread python
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

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

2010-03-06 Thread Steven James
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

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

2010-03-06 Thread python
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.ja...@gmail.com To: python-win32@python.org Date: Sat, 6 Mar 2010 10:17:43 -0500 Subject: Re: [python-win32] Detect whether a

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

2010-03-06 Thread Ulrich Mierendorff
pyt...@bdurham.com wrote: Steve, Those are some great ideas! I'll give it a shot and see what works for us. Detecting the monitor type may also help, because Laptops have built-in monitors and PCs not (OK, there are a few cases where PCs also have built-in monitor). -Ulrich Thanks for

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

2010-03-06 Thread Tony Cappellini
Message: 2 Date: Sat, 6 Mar 2010 10:17:43 -0500 From: Steven James steven.ja...@gmail.com To: python-win32@python.org Subject: Re: [python-win32] Detect whether a workstation is a laptop or desktop/server? Message-ID: e3c91421003060717o2769876ey82de33b5b7d41...@mail.gmail.com

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

2010-03-05 Thread python
As part of an inventory project I'm working on, I'm trying to figure out whether a specific computer is a mobile asset (laptop) or fixed asset (desktop/server). Is there some feature that I can look that would indicate whether a computer is a laptop or not? My initial thought was I could look for