Jump to content

How to detect if computer is a notebook? (without wmi)


Recommended Posts

I am looking for a way to check if a system is a notebook without using wmi.

This is because wmi is not availible at the systems i would like to check.

I was thinking about checking if it has a touchpad (all the notebooks within the company have touchpads).

Does anyone have idea's?

Link to comment
Share on other sites

I am looking for a way to check if a system is a notebook without using wmi.

This is because wmi is not availible at the systems i would like to check.

I was thinking about checking if it has a touchpad (all the notebooks within the company have touchpads).

Does anyone have idea's?

What systems are your target ?

Link to comment
Share on other sites

I am looking for a way to check if a system is a notebook without using wmi.

This is because wmi is not availible at the systems i would like to check.

I was thinking about checking if it has a touchpad (all the notebooks within the company have touchpads).

Does anyone have idea's?

Just a trail, only laptop have battery...

But I don't know if you can check that without WMI...

Link to comment
Share on other sites

Hmmm...

good one.. registry is the way to go imho..

#cs ----------------------------------------------------------------------------

 AutoIt Version: 3.2.4.9
 Author:         Lordofthestrings

 Script Function: detect powersaving options from registry..
#ce ----------------------------------------------------------------------------

; Add your code below here

Dim $LaptopSleep
$LaptopSleep = RegRead("HKEY_CURRENT_USER\Control Panel\PowerCfg","CurrentPowerPolicy") 
If ($LaptopSleep = "1") or ($LaptopSleep = "4") or ($LaptopSleep = "5") then
        ; this is a laptop!
EndIf

as I see TzarAlkex was right about this..

Edited by lordofthestrings
Link to comment
Share on other sites

I am looking for a way to check if a system is a notebook without using wmi.

This is because wmi is not availible at the systems i would like to check.

I was thinking about checking if it has a touchpad (all the notebooks within the company have touchpads).

Does anyone have idea's?

you could use devcon.exe (search microsoft.com) to list all installed devices. If the system shows a PCMCIA Controller, a InfraRed Controller and a Battery, chances are very good it is a Laptop.

Cheers

Kurt

__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...