raedts Posted June 6, 2007 Posted June 6, 2007 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?
autosc Posted June 6, 2007 Posted June 6, 2007 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 ?
raedts Posted June 6, 2007 Author Posted June 6, 2007 It is a BartPE based recovery disk. This disk is supposed to only work on a notebook.
autosc Posted June 6, 2007 Posted June 6, 2007 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.htmland i dont see any obstacle to rum WMI i hope ....
pixels75 Posted June 6, 2007 Posted June 6, 2007 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...
AdmiralAlkex Posted June 6, 2007 Posted June 6, 2007 The last post here explains how to read battery-status from the registry, maybe that can be used?? .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface
raedts Posted June 6, 2007 Author Posted June 6, 2007 Out of the box BartPe does not support WMI. I could use XPE but that is not a option.
lordofthestrings Posted June 7, 2007 Posted June 7, 2007 (edited) 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 June 7, 2007 by lordofthestrings
/dev/null Posted June 7, 2007 Posted June 7, 2007 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.CheersKurt __________________________________________________________(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 *
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now