Solved

Script to Set Hardware Manufacturer Variable

Posted on 2007-11-29
4
357 Views
Last Modified: 2010-04-21
Any help would be greatly appreciated.  I just need to know how to grab the manufacturer from the machine, such as IBM / Lenovo / Dell for an altiris script I am working on.  It will be used as a variable for injecting drivers into tons of different hardware.......

Echo Off
Echo Setting Variables for Quest XP migration
set osv=winxpsp2
set Library=v:\Library
set express=f:
set drvbase=%Library%\drivers
set firm=%Library%\rdeploy\Windows
set clients=%Library%\clients

??????????????What Should I Use Here????????????????????
echo Computer Manufacture is "%manufacture%"

Echo Inject Altiris Agent 6.0.2338 and Aclient 6.5.299.0 into Image
%firm%\firm.exe -recurse copy %clients% prod:drivers

Echo Inject Xcacls Utility to set permissions to c:\drivers folder
%firm%\firm.exe copy %Library%\Utils\xcacls.exe prod:windows

echo Computer Manufacture is "%manufacture%"
If "%manufacture%" == "IBM" goto IBM
If "%manufacture%" == "LENO" goto IBM
If "%manufacture%" == "Dell" goto Dell

0
Comment
Question by:bildy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 26

Expert Comment

by:lnkevin
ID: 20381718
I not a scripting expert, but I can show you the hint to get the manufacturing info from Windows. You may want to look in system32 for the file: oeminfo.ini
This file contains all the manufacture infomation as well as the computer made and model.

K
0
 
LVL 1

Author Comment

by:bildy
ID: 20381937
We need to do this to image systems, which may or may not currently have an operating system on them.  Thank you for the push in the right direction !
0
 
LVL 26

Accepted Solution

by:
lnkevin earned 500 total points
ID: 20382231
Can this script help you to find your solution? Check it out:
http://www.msfn.org/board/Multi-Manufacturer-Pre-Activation-t71016.html

K
0
 
LVL 1

Author Closing Comment

by:bildy
ID: 31411811
Closest answer received.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It is a general practice to get rid of old user profiles on a computer  in a LAN environment. As I have been working with a company in a LAN environment where users move from one place to some other place at times. This will make many user profil…
Batch, VBS, and scripts in general are incredibly useful for repetitive tasks.  Some tasks can take a while to complete and it can be annoying to check back only to discover that your script finished 5 minutes ago.  Some scripts may complete nearly …
Learn the basics of lists in Python. Lists, as their name suggests, are a means for ordering and storing values. : Lists are declared using brackets; for example: t = [1, 2, 3]: Lists may contain a mix of data types; for example: t = ['string', 1, T…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

718 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question