Solved

Script to Set Hardware Manufacturer Variable

Posted on 2007-11-29
4
336 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
  • 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
importing users to Security group 2 50
Radius Debug Error 16 89
Perc 6/I Drives all Failed When Creating RAID 9 87
pass a variable from a list to a batch file using psexec 11 54
INTRODUCTION The purpose of this document is to demonstrate the Installation and configuration, of the HP EVA 4400 SAN Storage. The name , IP and the WWN ID’s used here are not the real ones. ABOUT THE STORAGE For most of you reading this, you …
Usually shares are where we want them for our users and we tend to take them for granted. There are times, however, when those shares may disappear causing difficulty for your users. One of the first things to try is searching for files that shou…
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 how to dynamically set the form action using jQuery.

776 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