|
#1
|
|||
|
|||
|
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 |
|
#2
|
|||
|
|||
|
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 |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Notification of script error window... | selmac | Internet Explorer 6 | 0 | 01-05-2006 04:30 PM |
| Sysprep V2 vs Sysprep V1 for XP | madsdad | Windows XP Setup Deployment | 1 | 01-05-2006 06:26 AM |
| SP2 Firewall mods via Login Script | LVDave | Windows XP Security Admin | 2 | 01-05-2006 04:17 AM |
| Error 67 with login script - too fast? | CoffeeMan | Windows XP Network Web | 1 | 01-05-2006 04:10 AM |
| I need to run my own script AFTER network login script | dmontaldo | Windows XP New Users | 1 | 01-05-2006 03:55 AM |