Registered member login:
Register Now
Altirigos » Homepage2

» Current Poll
Do you leave the Aclient enabled?
YES - 82.31%
107 Votes
NO - 17.69%
23 Votes
Total Votes: 130
You may not vote on this poll.
» Stats
Members: 9,496
Threads: 11,750
Posts: 55,298
Top Poster: Nick (4,981)
Welcome our newest member, JessicaD
» Online Users: 62
3 members and 59 guests
g00ner, Juice_IFF, Zizio82
Most users online at once 294, 06-30-2007 at 12:24 PM.
» March 2010
S M T W T F S
28 1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31 123
View Single Post
Old 02-06-2008, 04:18 PM   #2 (permalink)
jdean
 
jdean's Avatar
 
Status: Super Altiris Admin
Join Date: 02-24-2005
Location: Orange County, California, USA
Posts: 585


Here is a snippet of what we use at my work.

echo %#!computer@prod_name% >> .\Models\%ID%.txt
for /f "tokens=1-5" %%A in (.\Models\%ID%.txt) do (Set Model=%%C)

If %Model% == dc7100 goto dc7100
If %Model% == nc2400(#ABA) goto nc2400
If %Model% == nc6400 goto nc6400
If %Model% == dc7600 goto dc7600
If %Model% == nc6220 goto nc6220
If %Model% == dc7700p goto dc7700p
If %Model% == nc6220 goto nc6220
If %Model% == dc7700 goto dc7700

Hope that helps.
Quote:
Originally Posted by Durrok View Post
Alright I have been struggling like crazy to get tokens to work correctly for my hardware independent image. I have the feeling I am simply missing something very easy here.

Running DS 6.8, booting into a windows pe pre-boot environment. I am trying to use this script (I condensed it):


echo Hardware Model number is %#!computer@model_num%
if "%#!computer@model_num%" =="0G5611" goto GX280

REM If we didn't find a match, just exit
goto Exit

:GX280
firm -recurse copy .\drivers\GX280 prod:\drivers
goto Exit

:Exit
exit


It is not working however. echo Hardware Model number is %#!computer@model_num% returns %#!computer@model_num%. I have already spent a few days pouring over this site, google, and any documentation from altiris I can find but in everyone's examples %#!computer@model_num% just works. What am I doing wrong?
__________________
IT Factotum * Altiris Addict * Wise Monger * VBScript Zealot

Jereme Dean
Orange County, CA
jdean33442@gmail.com
jdean is offline   Reply With Quote
 
Powered by vBadvanced CMPS v3.0 RC2

All times are GMT -4. The time now is 04:37 AM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
vB.Sponsors
Altirigos