scripting installation for Dell or Siemens (Full Version)

All Forums >> [Scripting Technologies] >> VB Script



Message


stormst -> scripting installation for Dell or Siemens (9/22/2008 8:07:35 AM)

I have 2 bat files for an installation of WinDVD. One for Dell pc's and one for Siemens pc's.
Can someone help me with a script to find out what the manufacturer of the pc is,
to start the corresponding installation for WinDVD?

I google'd a lot, but I can't make anything in vbscript with it :(




vrodrigues -> RE: scripting installation for Dell or Siemens (9/22/2008 10:58:55 AM)

Try this

strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_ComputerSystem")
For Each objItem in colItems
   wscript.echo objItem.Manufacturer
   wscript.echo= objItem.Model
Next






Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.15625