Jump to content
Sign in to follow this  
raedts

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

Recommended Posts

raedts

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?

Share this post


Link to post
Share on other sites
autosc

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 ?

Share this post


Link to post
Share on other sites
raedts

It is a BartPE based recovery disk.

This disk is supposed to only work on a notebook.

Share this post


Link to post
Share on other sites
autosc

It is a BartPE based recovery disk.

This disk is supposed to only work on a notebook.

If you are refering about this product on link ... It works even in pcs

http://www.snapfiles.com/get/bartpe.html

and i dont see any obstacle to rum WMI i hope ....

Share this post


Link to post
Share on other sites
pixels75

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...

Share this post


Link to post
Share on other sites
raedts

Out of the box BartPe does not support WMI.

I could use XPE but that is not a option.

Share this post


Link to post
Share on other sites
lordofthestrings

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

Share this post


Link to post
Share on other sites
/dev/null

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 *

Share this post


Link to post
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
Sign in to follow this  

×