I now have a problem where the 'Run Script' has a character limitation. The script determines what kind of computer it is and downloads the correct drivers and copies the correct sysprep folder.
The script works fine except that I can't add any more computers to the script. Here is what I have in the script.
EXAMPLE
if "%#!computer@prod_name%" =="optiplex 745" goto O745
if "%#!computer@prod_name%" =="latitude d430" goto D430
if "%#!computer@prod_name%" =="optiplex gx620" goto O620
if "%#!computer@prod_name%" =="optiplex gx280" goto O280
if "%#!computer@prod_name%" =="latitude d620" goto D620
if "%#!computer@prod_name%" =="latitude d630" goto d630
if "%#!computer@prod_name%" =="latitude d820" goto D820
if "%#!computer@prod_name%" =="latitude d810" goto D810
if "%#!computer@prod_name%" =="latitude d610" goto D610
if "%#!computer@prod_name%" =="latitude e6400" goto E6400
if "%#!computer@prod_name%" =="latitude e6500" goto E6500
if "%#!computer@prod_name%" =="latitude e4300" goto E4300
if "%#!computer@prod_name%" =="optiplex gx760" goto O760
goto Exit
745
firmwin -recurse copy .\drivers\O745 prod:\drivers
rem replacetokens .\drivers\O745\sysprep.inf .\temp\o745\%ID%.inf
firmwin -recurse copy .\temp\o745\%ID%.inf PROD:sysprep\sysprep.inf
goto Exit
430
firmwin -recurse copy .\drivers\D430 prod:\drivers
rem replacetokens .\drivers\D430\sysprep.inf .\temp\d430\%ID%.inf
firmwin -recurse copy .\temp\d430\%ID%.inf PROD:sysprep\sysprep.inf
goto Exit
etc.
I copied the script into a batch file but the rem replacetokens does not work properly. I get an error message saying "The file could not be found". I spoke with Altiris and they think it is a bug.
Does anybody have suggestions?