Solved

Script to Set Hardware Manufacturer Variable

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

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Join & Write a Comment

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…
More or less everybody in the IT market understands the basics of Networking, however when we start talking about Storage Networks, things get a bit dizzier, and this is where I would like to help.
Learn the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
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)

746 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now