Thanks for your help so far eorme,
Where would i find the dell script tasks that you mentioned?
Below I have a copy of the script I have created which is working to a point.
Basically I have it working to the point that it copies the XP files to the hard drive. However once it has completed this it reloops into my script and continues to copy the XP files again. Have you seen this issue before? Would this be something to do with my unattended settings?
My script below basically runs some commands based on the IP address it finds the location i'm at and sets the appropriate drive within my winpe boot environment. It then sets the appropriate values and sets off the install. Can you see any reason as to why this is constantly looping through my script and never getting to the step of Installing windows? I didn't seem to have this issue with the default scripted OS install.
@echo off
REM Scripted OS
Set Count=
ipconfig | find "IPv4 Address" > TEMP_MyIPAddress.txt
for /f "tokens=1-2 delims=:" %%i in (TEMP_MyIPAddress.txt) do echo %%j >> TEMP_MyIPAddress2.txt
for /f "tokens=1-3 delims=." %%i in (TEMP_MyIPAddress2.txt) do call :IPAddressFound %%j
REM del TEMP_MyIPAddress.txt
REM del TEMP_MyIPAddress2.txt
:IPAddressFound
Set Count=%Count%Y
echo Address found, third octet is %1
set ipaddressloc=%1
if "%ipaddressloc%"=="30" set server=H:
if "%ipaddressloc%"=="20" set server=F:
if "%ipaddressloc%"=="22" set server=F:
if "%ipaddressloc%"=="70" set server=G:
C:
md altiris
cd altiris
md aclient
md files
cd files
md sp
cd \
copy %server%\altiris\a5000660.txt c:\altiris\files\unattend.txt
copy %ALTIRIS_SHARE%\agents\aclient\altiris-aclient-6.9.164.X86.exe c:\altiris\aclient\aclient.exe
copy %server%\altiris\c5000660.inp c:\altiris\aclient\aclient.inp
%server%
cd \
cd altiris\deploy\WinOS001\i386
WINNT32.EXE /unattend:c:\altiris\files\unattend.txt /s:%server%\altiris\deploy\WinOS001\i386 /noreboot /syspart:C: