Hardware Profile Detection

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there a way to detect what hardware profile has been loaded when you start
up your system. I'd like to do some scripting to launch different programs
based on whether my system is Docked or Undocked. Note, I already know how
to affect what hardware gets started up on various hardware profiles. This
is limited to Software.
 
HOW TO: Set Up Hardware Profiles for Laptop Computers in Windows XP
http://support.microsoft.com/default.aspx?scid=kb;en-us;308577&sd=tech

--
Carey Frisch
Microsoft MVP
Windows - Shell/User
Microsoft Community Newsgroups
news://msnews.microsoft.com/

-------------------------------------------------------------------------------------------

:

| Is there a way to detect what hardware profile has been loaded when you start
| up your system. I'd like to do some scripting to launch different programs
| based on whether my system is Docked or Undocked. Note, I already know how
| to affect what hardware gets started up on various hardware profiles. This
| is limited to Software.
 
Sorry. That doesn't help. I've already read this KB article and several
other to no avail. I've already got a Docked and an Undocked profile set up
and all works fine in terms of what hardware is active, etc. What I'm trying
to do now is detect what profile has been loaded in a .cmd file script so
that I can take different action in the script based on whether I'm docked or
undocked.
 
dc01bb said:
Is there a way to detect what hardware profile has been loaded
when you start up your system. I'd like to do some scripting
to launch different programs based on whether my system is
Docked or Undocked. Note, I already know how to affect what
hardware gets started up on various hardware profiles. This
is limited to Software.
Hi,

It looks like you can do some registry lookups:
http://groups.google.com/groups?as_...&as_eq=&as_ugroup=microsoft.public.*&safe=off


Also, you should probably be able to use the ChassisTypes property in
the Win32_SystemEnclosure WMI class to detect if a computer is docked
or not, regardless of the hardware profile selected, in this link there
is a VBScript example (.vbs file):

http://groups.google.com/group/microsoft.public.windowsxp.wmi/msg/b135b82b01b44516?dmode=source
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top