RE: sysprep, vbs script
Within your sysprep.inf file you can add:
[GuiRunOnce]
Command0="cmd /c c:\run.bat"
Command1="cmd /c del c:\run.bat"
within that bat file you can have several calls to install, clean up or move
items. this way you can keep the image as general as possible and change your
batch file through ghost explorer if needed. An example of my batch file is
below:
@echo off
echo Configuring system..........
%systemroot%\system32\reg.exe add HKLM\SOFTWARE\MyCompany\IT\BaseImage /v
Name /t REG_SZ /d "Windows XP SP2 Systemax STORE Image, Systemax Only" /f >
nul
%systemroot%\system32\reg.exe add HKLM\SOFTWARE\MyCompany\IT\BaseImage /v
Version /t REG_SZ /d 1.04 /f > nul
%systemroot%\system32\reg.exe add HKLM\SOFTWARE\MyCompany\IT\BaseImage /v
ReimageDate /t REG_SZ /d "%Date% %Time%" /f > nul
echo Done.
echo.
echo Moving Icons to the desktop
copy "C:\windows\itsupport\desktop\*.*" "%ALLUSERSPROFILE%\Desktop" > nul
echo Done.
echo.
echo Installing CSA Client
c:\windows\itsupport\apps\csa\csa-MyCompany_corporate_workstations-setup.exe
echo Done.
I hope this is what you are asking for. If not let me know. We use Sysprep
for Ghost and WinPE imaging.
"Joe" wrote:
> We're learning how to use sysprep to deploy our image to the new computers
> that we get. I have a couple of questions I hope that someone can answer for
> me.
>
> 1. Is there anyway to run a VBS script during the sysprep? Specifically we
> want to remove the IE icon from the desktop. We have a VBS script that can do
> this. We currently have to run the mini-setup then when that is done
> manually run the VBS script and then reboot which makes the icon disappear.
> Is there a better/quicker way to do this?
>
> 2. Also the mini-setup creates an icon for the Media player. Again we can
> just delete the icon from Documents and Settings/All Users/Desktop/ folder.
> Is there a way to do this during the mini-setup also?
>
> Thank you in Advance
|