myITforum.com Community Forum myITforum.com Community Forum

Home  Forums  Blogs  Live Support chat  Search Articles  Wiki  FAQ  Email Lists  Register  Login  My Profile  Inbox  Address Book  My Subscription  My Forums 

Photo Gallery  Member List  Search  Calendars  FAQ  Ticket List  Log Out

All Forums RSS Feed Subscription:


  


scripting installation for Dell or Siemens

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
  Printable Version
All Forums >> [Scripting Technologies] >> VB Script >> scripting installation for Dell or Siemens Page: [1]
Login
Message << Older Topic   Newer Topic >>
scripting installation for Dell or Siemens - 9/22/2008 8:07:35 AM   
stormst

 

Posts: 1
Score: 0
Joined: 9/22/2008
Status: offline
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 :(
Post #: 1
RE: scripting installation for Dell or Siemens - 9/22/2008 10:58:55 AM   
vrodrigues

 

Posts: 68
Score: 9
Joined: 6/8/2001
From: Massachusetts
Status: offline
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



(in reply to stormst)
Post #: 2
Page:   [1]
All Forums >> [Scripting Technologies] >> VB Script >> scripting installation for Dell or Siemens Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts



  
Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

0.266