Solved

Script to Set Hardware Manufacturer Variable

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

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…
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 …
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to count occurrences of each item in an array.

820 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