Home All Groups Group Topic Archive Search About

Script software install if certain hardware exists



Author
5 Nov 2007 1:00 PM
Itencypt
I am trying to write a script to check to see if the computer is a laptop and
installs software if found.  Can anyone lend a hand?

Author
5 Nov 2007 5:10 PM
Richard Mueller [MVP]
Itencypt wrote:

>I am trying to write a script to check to see if the computer is a laptop
>and
> installs software if found.  Can anyone lend a hand?

WMI can be used in a VBScript program to determine the chassis type. See
this link:

http://www.microsoft.com/technet/scriptcenter/guide/sas_cpm_btnz.mspx

For installing software on the local computer, see this link:

http://www.microsoft.com/technet/scriptcenter/guide/sas_cpm_nila.mspx

--
Richard Mueller
Microsoft MVP Scripting and ADSI
Hilltop Lab - http://www.rlmueller.net
--
Author
5 Nov 2007 6:15 PM
RemS
"Itencypt" wrote:

> I am trying to write a script to check to see if the computer is a laptop and
> installs software if found.  Can anyone lend a hand?


The "Win32_SystemEnclosure" WMI class represents the properties that are
associated with a physical system enclosure.
Here is an example
http://www.petri.co.il/forums/showthread.php?t=18932

\Rems

AddThis Social Bookmark Button