Solved

Script to Set Hardware Manufacturer Variable

Posted on 2007-11-29
4
352 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: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying 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

In this tutorial I will show you how to make a simple HTML bar chart with the usage of WhizBase, If you want more information about WhizBase please read my previous articles at http://www.experts-exchange.com/ARTH_5123186.html (http://www.experts-ex…
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 modules and packages in Python. Every Python file is a module, ending in the suffix: .py: Modules are a collection of functions and variables.: Packages are a collection of modules.: Module functions and variables are accessed us…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

738 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