I have created a sysprep image for Windows XPsp3 that will pull the BIOS asset tag and enter it for the Computer Name and join my domain. This image is dual purpose, for users who get the full blown Office 2007 (Word, Excel, PowerPoint and Outlook) and users who only get certain full components of Office 2007 (Outlook, the other components are just viewers, Excel Viewer, Word Viewer, Power Point Viewer). I have a bat file that works manually but when I place it in the sysprep GUIrunonce section of my sysprep file the bat file launches both entries. Probably a little confusing...ok, alot confusing so I'll elaborate. I have a file on the drive a batch file that needs to be ran so the user can specifiy what they should get regarding the Office suite. This also installed some hard drive encryption software. The batch files goes something like this:
REM Simple Menu System
CLS
:start
echo .
echo .
echo This is the image for such and such users
echo Image 3bc
echo Choose what type of user you are
echo ====================================
echo .
echo 1. Full Office User
echo 2. Viewer Office User
echo .
echo Enter option (1 or 2)
Reply
if errorlevel 50 goto Office
if errorlevel 49 goto Viewer
rem beep
:Office
C:\path to install batch file
:Viewer
C:\path to install batch file
end
When the machine starts up and goes through sysprep everything is fine and I can login to the domain with my AD credentials. Then the runoncegui launches, this batch file and stars installing Office and doesn't give me an opportunity to hit 1 or 2. If I run this manually it works like it is suppose to. Is the reply causing the issue. Any suggestions on how to fix or an alternative solution?
Thanks.