Here is my tutorial to update and customize win7 by Windows AIK and CMD. keep the Command script files your edited system files in same folder Required software: CMD Windows AIK 3.0 (i have & used it) Resource hacker Folder tree(The folder name should be very short & keep he Command scriptch files in it ): uploaded pic will giveyou an idead. Don't change the file names if you do ,then change them in Command scripts files too.- Important files in the folder excluding those in pic. Apple-Dell-Logo1.bmp (according to your laptop logo size) background.bmp background_cli.bmp backgroundDefault.jpeg basebrd.dll.mui -- customized FirstUXBackground.bmp ---- must be of 1024*768 notepad.exe ---------- (notepad2 software very useful,copy the exe file and name it notepad.exe) notepad.ini---------------(same software the .ini file in it ) setup.bmp setup.exe.mui -----------customized spwizimg.dll ------------customized w32uires.dll.mui---------customized wininit.exe.mui----------customized winlogon.exe.mui---------customized winpe.bmp ---------------- for the customized DLL file google around, you will find tutorial to edit them. resolution size of pics are your default screen size unless otherwise mentioned. For Update and integration run the command script file. make folders in system drive i.e. C:\7MSDN. Make another folder "integration", and keep the updates as shown in pics uploaded . Thank you "murphy78" for update list Command Script Code: cd /d %~dp0 CLS @ECHO OFF SET DVDSOURCE=%systemdrive%\7MSDN SET MOUNTDIR=%systemdrive%\mount SET SUBMOUNTDIR=%systemdrive%\mount2 SET FirstUXRes=%systemdrive%\FirstUXRes SET STORE=D:\7ISO\ISO SET TRASH=c:\temp SET MOUNTNUM= SET ImageDescription= SET DISM=%systemdrive%\Program Files\Windows AIK\Tools\Servicing\Dism.exe if ERRORLEVEL 1 SET /p DISM=%~dp0DISM.EXE SET imagex=%systemdrive%\Program Files\Windows AIK\Tools\amd64\imagex.exe if ERRORLEVEL 1 SET /p imagex=%~dp0imagex.exe SET oscdimg=%systemdrive%\Program Files\Windows AIK\Tools\amd64\oscdimg.exe if ERRORLEVEL 1 SET /p oscdimg=%~dp0oscdimg.exe ECHO. ECHO This script will modify Setup images on the 7 DVD and inside sources\install.wim ECHO. ECHO Make sure to have pre-prepared your spwizimg.dll and imageres.dll files. ECHO The script will use spwizimg.dll and imageres.dll for 32-bit images, ECHO and spwizimg.dll and imageres.dll for 64-bit images. ECHO. ECHO Also make sure to have the Windows 7 AIK installed, the DVD extracted to an ECHO editable folder, and a blank folder created to mount the install.wim image. ECHO it's custom name/description what i have given is "RT7Ultimate-x64" ECHO. ECHO. SET /P MOUNTNUM=Path to IMAGE NUMBER: SET /P ImageDescription=windows 7 image Description IF EXIST "%MOUNTDIR%" ( ECHO cleaning up previous run IF EXIST "%MOUNTDIR%" DISM /cleanup-wim IF EXIST "%MOUNTDIR%" DISM /Unmount-Wim /MountDir:"%MOUNTDIR%" /discard IF EXIST "%MOUNTDIR%" RMDIR /s /Q "%MOUNTDIR%" IF EXIST "%MOUNTDIR%" TAKEOWN /F "%MOUNTDIR%" /R IF EXIST "%MOUNTDIR%" ICACLS "%MOUNTDIR%" /T /L /GRANT Administrators:FD IF EXIST "%MOUNTDIR%" RMDIR /s /Q "%MOUNTDIR%" ) IF EXIST "%SUBMOUNTDIR%" ( IF EXIST "%SUBMOUNTDIR%" DISM /Unmount-Wim /MountDir:"%SUBMOUNTDIR%" /discard IF EXIST "%SUBMOUNTDIR%" RMDIR /s /Q "%SUBMOUNTDIR%" IF EXIST "%SUBMOUNTDIR%" TAKEOWN /F "%SUBMOUNTDIR%" /R IF EXIST "%SUBMOUNTDIR%" ICACLS "%SUBMOUNTDIR%" /T /L /GRANT Administrators:FD IF EXIST "%SUBMOUNTDIR%" RMDIR /s /Q "%SUBMOUNTDIR%" ) IF EXIST "%FirstUXRes%" ( IF EXIST "%FirstUXRes%" TAKEOWN /F "%FirstUXRes%" /R IF EXIST "%FirstUXRes%" ICACLS "%FirstUXRes%" /T /L /GRANT Administrators:FD IF EXIST "%FirstUXRes%" RMDIR /s /Q "%FirstUXRes%" ) IF EXIST "%TRASH%" ( IF EXIST "%TRASH%" TAKEOWN /F "%TRASH%" /R IF EXIST "%TRASH%" ICACLS "%TRASH%" /T /L /GRANT Administrators:FD IF EXIST "%TRASH%" RMDIR /s /Q "%TRASH%" ) mkdir %MOUNTDIR% mkdir %SUBMOUNTDIR% mkdir %FirstUXRes% mkdir %TRASH% echo Temporary Deletation phase check if its done ok. ECHO From this point onwards files will be modified. ECHO If you wish to quit, please close the program now. Pause ECHO Updating Windows 7 ISO. DISM /mount-wim /wimfile:%DVDSOURCE%\sources\install.wim /index:%MOUNTNUM% /mountdir:%MOUNTDIR% dism /image:c:\mount /add-package /packagepath:c:\integration\1-PreReqs dism /image:c:\mount /add-package /packagepath:c:\integration\2-IE dism /image:c:\mount /add-package /packagepath:c:\integration\3-MainUpdates dism /image:c:\mount /add-package /packagepath:c:\integration\4-2ndPass dism /image:c:\mount /add-package /packagepath:c:\integration\5-IEUpdates dism /image:c:\mount /add-package /packagepath:c:\integration\6-SelfUpdate dism /unmount-wim /mountdir:c:\mount /commit imagex /compress maximum /export %DVDSOURCE%\sources\install.wim 4 %STORE%\install.wim "%ImageDescription%" xcopy /Y %STORE%\install.wim* %DVDSOURCE%\sources\install.wim show error if any DISM /mount-wim /wimfile:%DVDSOURCE%\sources\install.wim /index:%MOUNTNUM% /mountdir:%MOUNTDIR% dism /image:c:\mount /Disable-Feature /FeatureName:"More Games" dism /image:c:\mount /Disable-Feature /FeatureName:WindowsGadgetPlatform dism /image:c:\mount /Disable-Feature /FeatureName:”Internet Games” dism /image:c:\mount /Disable-Feature /FeatureName:Chess dism /image:c:\mount /Disable-Feature /FeatureName:PurblePlace dism /image:c:\mount /Disable-Feature /FeatureName:Shanghai dism /image:c:\mount /Disable-Feature /FeatureName:MediaPlayback dism /image:c:\mount /Disable-Feature /FeatureName:MediaCenter dism /image:c:\mount /Disable-Feature /FeatureName:OpticalMediaDisc dism /image:c:\mount /Disable-Feature /FeatureName:WindowsMediaPlayer dism /image:c:\mount /Set-UILang:en-US dism /image:c:\mount /set-timezone:"India Standard Time" dism /image:c:\mount /Set-UserLocale:en-US ECHO /unmount-wim /mountdir:%MOUNTDIR% /commit :::::::::::::::::::::For install.wim:::::::::::::::::::::::::::::::::: ECHO Mounting install.wim index:%MOUNTNUM% to %MOUNTDIR% DISM /mount-wim /wimfile:%DVDSOURCE%\sources\install.wim /index:%MOUNTNUM% /mountdir:%MOUNTDIR% :: For W32UIRes ECHO Modifying "%MOUNTDIR%\Windows\System32\oobe\en-US\W32UIRes.dll.mui" TAKEOWN /a /f "%MOUNTDIR%\Windows\System32\oobe\en-US\W32UIRes.dll.mui" icacls "%MOUNTDIR%\Windows\System32\oobe\en-US\W32UIRes.dll.mui" /Grant Administrators:F Copy /Y "%~dp0W32UIRes.dll.mui" "%MOUNTDIR%\Windows\System32\oobe\en-US\W32UIRes.dll.mui" ::For Basebrd ECHO Modifying "basebrd.dll.mui" takeown /a /f "%MOUNTDIR%\Windows\Branding\Basebrd\en-US\basebrd.dll.mui" icacls "%MOUNTDIR%\Windows\Branding\Basebrd\en-US\basebrd.dll.mui" /Grant Administrators:F Copy /Y "%~dp0basebrd.dll.mui" "%MOUNTDIR%\Windows\Branding\Basebrd\en-US\basebrd.dll.mui" ::For Notepad echo modifying notepad in windows takeown /a /f "%MOUNTDIR%\Windows\notepad.exe" icacls "%MOUNTDIR%\Windows\notepad.exe" /Grant Administrators:F Copy /Y "%~dp0notepad.exe" "%MOUNTDIR%\Windows\notepad.exe" echo modifying notepad in system32 takeown /a /f "%MOUNTDIR%\Windows\System32\notepad.exe" icacls "%MOUNTDIR%\Windows\System32\notepad.exe" /Grant Administrators:F Copy /Y "%~dp0notepad.exe" "%MOUNTDIR%\Windows\System32\notepad.exe" Copy /Y "%~dp0notepad.ini" "%MOUNTDIR%\Users\Administrator\AppData\Roaming\notepad.ini" Copy /Y "%~dp0notepad.ini" "%MOUNTDIR%\Users\Default\AppData\Roaming\notepad.ini" :: For windows shutdown text echo modifying windows shutdown text takeown /a /f "%MOUNTDIR%\Windows\System32\en-US\wininit.exe.mui" icacls "%MOUNTDIR%\Windows\System32\en-US\wininit.exe.mui" /Grant Administrators:F Copy /Y "%~dp0wininit.exe.mui" "%MOUNTDIR%\Windows\System32\en-US\wininit.exe.mui" takeown /a /f "%MOUNTDIR%\Windows\SysWOW64\en-US\wininit.exe.mui" icacls "%MOUNTDIR%\Windows\SysWOW64\en-US\wininit.exe.mui" /Grant Administrators:F Copy /Y "%~dp0wininit.exe.mui" "%MOUNTDIR%\Windows\SysWOW64\en-US\wininit.exe.mui" :: For windows logon text echo modifying windows logon text takeown /a /f "%MOUNTDIR%\Windows\System32\en-US\winlogon.exe.mui" icacls "%MOUNTDIR%\Windows\System32\en-US\winlogon.exe.mui" /Grant Administrators:F Copy /Y "%~dp0winlogon.exe.mui" "%MOUNTDIR%\Windows\System32\en-US\winlogon.exe.mui" :: For Spwizimg.dll ECHO Modifying "%MOUNTDIR%\Windows\System32\spwizimg.dll" TAKEOWN /a /f "%MOUNTDIR%\Windows\System32\spwizimg.dll" icacls "%MOUNTDIR%\Windows\System32\spwizimg.dll" /Grant Administrators:F DEL /Q "%MOUNTDIR%\Windows\System32\spwizimg.dll" Copy /Y "%~dp0spwizimg.dll" "%MOUNTDIR%\Windows\System32\spwizimg.dll" ECHO Modifying "%MOUNTDIR%\Windows\syswow64\spwizimg.dll" takeown /a /f "%MOUNTDIR%\Windows\syswow64\spwizimg.dll" icacls "%MOUNTDIR%\Windows\syswow64\spwizimg.dll" /Grant Administrators:F DEL /Q "%MOUNTDIR%\Windows\syswow64\spwizimg.dll" Copy /Y "%~dp0spwizimg.dll" "%MOUNTDIR%\Windows\syswow64\spwizimg.dll" ::For Imageres.dll ECHO Modifying "%MOUNTDIR%\Windows\System32\imageres.dll" TAKEOWN /a /f "%MOUNTDIR%\Windows\System32\imageres.dll" icacls "%MOUNTDIR%\Windows\System32\imageres.dll" /Grant Administrators:F DEL /Q "%MOUNTDIR%\Windows\System32\imageres.dll" Copy /Y "%~dp0imageres.dll" "%MOUNTDIR%\Windows\System32\imageres.dll" ECHO Modifying "%MOUNTDIR%\Windows\syswow64\imageres.dll" takeown /a /f "%MOUNTDIR%\Windows\syswow64\imageres.dll" icacls "%MOUNTDIR%\Windows\syswow64\imageres.dll" /Grant Administrators:F DEL /Q "%MOUNTDIR%\Windows\syswow64\imageres.dll" Copy /Y "%~dp0imageres.dll" "%MOUNTDIR%\Windows\syswow64\imageres.dll" :: For background.bmp ECHO Modifying "%MOUNTDIR%\Windows\System32\oobe\background.bmp" TAKEOWN /a /f "%MOUNTDIR%\Windows\System32\oobe\background.bmp" icacls "%MOUNTDIR%\Windows\System32\oobe\background.bmp" /Grant Administrators:F DEL /Q "%MOUNTDIR%\Windows\System32\oobe\background.bmp" Copy /Y "%~dp0background.bmp" "%MOUNTDIR%\Windows\System32\oobe\background.bmp" ECHO Modifying "%MOUNTDIR%\Windows\syswow64\oobe\background.bmp" takeown /a /f "%MOUNTDIR%\Windows\syswow64\oobe\background.bmp" icacls "%MOUNTDIR%\Windows\syswow64\oobe\background.bmp" /Grant Administrators:F DEL /Q "%MOUNTDIR%\Windows\syswow64\oobe\background.bmp" Copy /Y "%~dp0background.bmp" "%MOUNTDIR%\Windows\syswow64\oobe\background.bmp" :: For Patched Uxtheme ECHO Modifying windows patched -UXtheme takeown /a /f "%MOUNTDIR%\Windows\System32\uxtheme.dll" icacls "%MOUNTDIR%\Windows\System32\uxtheme.dll" /Grant Administrators:F DEL /Q %MOUNTDIR%\Windows\System32\uxtheme.dll Copy /Y "%~dp0UxTheme\x64\uxtheme.dll" "%MOUNTDIR%\Windows\System32\uxtheme.dll" ECHO Modifying "%MOUNTDIR%\Windows\SysWOW64\uxtheme.dll" takeown /a /f "%MOUNTDIR%\Windows\SysWOW64\uxtheme.dll" icacls "%MOUNTDIR%\Windows\SysWOW64\uxtheme.dll" /Grant Administrators:F DEL /Q %MOUNTDIR%\Windows\SysWOW64\uxtheme.dll Copy /Y "%~dp0UxTheme\x86\uxtheme.dll" "%MOUNTDIR%\Windows\SysWOW64\uxtheme.dll" ECHO Modifying "%MOUNTDIR%\Windows\System32\themeservice.dll" takeown /a /f "%MOUNTDIR%\Windows\System32\themeservice.dll" icacls "%MOUNTDIR%\Windows\System32\themeservice.dll" /Grant Administrators:F DEL /Q "%MOUNTDIR%\Windows\System32\themeservice.dll" Copy /Y "%~dp0UxTheme\x64\themeservice.dll" "%MOUNTDIR%\Windows\System32\themeservice.dll" ECHO Modifying "%MOUNTDIR%\Windows\System32\themeui.dll" takeown /a /f "%MOUNTDIR%\Windows\System32\themeui.dll" icacls "%MOUNTDIR%\Windows\System32\themeui.dll" /Grant Administrators:F DEL /Q "%MOUNTDIR%\Windows\System32\themeui.dll" Copy /Y "%~dp0UxTheme\x64\themeui.dll" "%MOUNTDIR%\Windows\System32\themeui.dll" ECHO Modifying "%MOUNTDIR%\Windows\SysWOW64\themeui.dll" takeown /a /f "%MOUNTDIR%\Windows\SysWOW64\themeui.dll" icacls "%MOUNTDIR%\Windows\SysWOW64\themeui.dll" /Grant Administrators:F DEL /Q "%MOUNTDIR%\Windows\SysWOW64\themeui.dll" Copy /Y "%~dp0UxTheme\x86\themeui.dll" "%MOUNTDIR%\Windows\SysWOW64\themeui.dll" :: For Themes ECHO Modifying "Themes folder" takeown /a /F "%MOUNTDIR%\Windows\Resources\Ease of Access Themes\classic.theme" icacls "%MOUNTDIR%\Windows\Resources\Ease of Access Themes\classic.theme" /Grant Administrators:F DEL /S /Q "%MOUNTDIR%\Windows\Resources\Ease of Access Themes\classic.theme" takeown /a /F "%MOUNTDIR%\Windows\Resources\Ease of Access Themes\hc1.theme" icacls "%MOUNTDIR%\Windows\Resources\Ease of Access Themes\hc1.theme" /Grant Administrators:F DEL /S /Q "%MOUNTDIR%\Windows\Resources\Ease of Access Themes\hc1.theme" takeown /a /F "%MOUNTDIR%\Windows\Resources\Ease of Access Themes\hc2.theme" icacls "%MOUNTDIR%\Windows\Resources\Ease of Access Themes\hc2.theme" /Grant Administrators:F DEL /S /Q "%MOUNTDIR%\Windows\Resources\Ease of Access Themes\hc2.theme" takeown /a /F "%MOUNTDIR%\Windows\Resources\Ease of Access Themes\hcblack.theme" icacls "%MOUNTDIR%\Windows\Resources\Ease of Access Themes\hcblack.theme" /Grant Administrators:F DEL /S /Q "%MOUNTDIR%\Windows\Resources\Ease of Access Themes\hcblack.theme" takeown /a /F "%MOUNTDIR%\Windows\Resources\Ease of Access Themes\hcwhite.theme" icacls "%MOUNTDIR%\Windows\Resources\Ease of Access Themes\hcwhite.theme" /Grant Administrators:F DEL /S /Q "%MOUNTDIR%\Windows\Resources\Ease of Access Themes\hcwhite.theme" takeown /a /F "%MOUNTDIR%\Windows\Resources\Themes" /r /d y icacls "%MOUNTDIR%\Windows\Resources\Themes" /Grant Administrators:F RMDIR /S /Q "%MOUNTDIR%\Windows\Resources\Themes" xCopy /S /Y "%~dp0Themes" "%MOUNTDIR%\Windows\Resources\Themes" :: For Wallpaper ECHO Modifying "Wallpaper folder" takeown /a /f "%MOUNTDIR%\Windows\Web\Wallpaper\Architecture" /r /d y icacls "%MOUNTDIR%\Windows\Web\Wallpaper\Architecture" /Grant Administrators:F RMDIR /S /Q "%MOUNTDIR%\Windows\Web\Wallpaper\Architecture" takeown /a /f "%MOUNTDIR%\Windows\Web\Wallpaper\Characters" /r /d y icacls "%MOUNTDIR%\Windows\Web\Wallpaper\Characters" /Grant Administrators:F RMDIR /S /Q "%MOUNTDIR%\Windows\Web\Wallpaper\Characters" takeown /a /f "%MOUNTDIR%\Windows\Web\Wallpaper\Landscapes" /r /d y icacls "%MOUNTDIR%\Windows\Web\Wallpaper\Landscapes" /Grant Administrators:F RMDIR /S /Q "%MOUNTDIR%\Windows\Web\Wallpaper\Landscapes" takeown /a /f "%MOUNTDIR%\Windows\Web\Wallpaper\Nature" /r /d y icacls "%MOUNTDIR%\Windows\Web\Wallpaper\Nature" /Grant Administrators:F RMDIR /S /Q "%MOUNTDIR%\Windows\Web\Wallpaper\Nature" takeown /a /f "%MOUNTDIR%\Windows\Web\Wallpaper\Scenes" /r /d y icacls "%MOUNTDIR%\Windows\Web\Wallpaper\Scenes" /Grant Administrators:F RMDIR /S /Q "%MOUNTDIR%\Windows\Web\Wallpaper\Scenes" xCopy /Y "%~dp0Windows" "%MOUNTDIR%\Windows\Web\Wallpaper\Windows" :: For Screen saver ECHO Modifying "Screen saver folder" takeown /a /f "%MOUNTDIR%\Windows\System32\Mystify.scr" icacls "%MOUNTDIR%\Windows\System32\Mystify.scr" /Grant Administrators:F DEL /S /Q "%MOUNTDIR%\Windows\System32\Mystify.scr" takeown /a /f "%MOUNTDIR%\Windows\System32\Ribbons.scr" icacls "%MOUNTDIR%\Windows\System32\Mystify.scr" /Grant Administrators:F Move /y "%MOUNTDIR%\Windows\System32\Ribbons.scr" "%TRASH%\screensaver1" takeown /a /f "%MOUNTDIR%\Windows\System32\scrnsave.scr" icacls "%MOUNTDIR%\Windows\System32\scrnsave.scr" /Grant Administrators:F DEL /S /Q "%MOUNTDIR%\Windows\System32\scrnsave.scr" takeown /a /f "%MOUNTDIR%\Windows\SysWOW64\Mystify.scr" icacls "%MOUNTDIR%\Windows\SysWOW64\Mystify.scr" /Grant Administrators:F DEL /S /Q "%MOUNTDIR%\Windows\SysWOW64\Mystify.scr" takeown /a /f "%MOUNTDIR%\Windows\SysWOW64\Ribbons.scr" icacls "%MOUNTDIR%\Windows\SysWOW64\Mystify.scr" /Grant Administrators:F Move /y "%MOUNTDIR%\Windows\SysWOW64\Ribbons.scr" "%TRASH%\screensaver2" takeown /a /f "%MOUNTDIR%\Windows\SysWOW64\scrnsave.scr" icacls "%MOUNTDIR%\Windows\SysWOW64\scrnsave.scr" /Grant Administrators:F DEL /S /Q "%MOUNTDIR%\Windows\SysWOW64\scrnsave.scr" ::echo screen deletation phasedone ::pause takeown /a /f "%MOUNTDIR%\Windows\System32\en-US\Mystify.scr.mui" icacls "%MOUNTDIR%\Windows\System32\en-US\Mystify.scr.mui" /Grant Administrators:F Move /y "%MOUNTDIR%\Windows\System32\en-US\Mystify.scr.mui" "%TRASH%\screensaver1" takeown /a /f "%MOUNTDIR%\Windows\System32\en-US\Ribbons.scr.mui" icacls "%MOUNTDIR%\Windows\System32\en-US\Ribbons.scr.mui" /Grant Administrators:F Move /y "%MOUNTDIR%\Windows\System32\en-US\Ribbons.scr.mui" "%TRASH%\screensaver1" takeown /a /f "%MOUNTDIR%\Windows\System32\en-US\scrnsave.scr.mui" icacls "%MOUNTDIR%\Windows\System32\en-US\scrnsave.scr.mui" /Grant Administrators:F Move /y "%MOUNTDIR%\Windows\System32\en-US\scrnsave.scr.mui" "%TRASH%\screensaver1" takeown /a /f "%MOUNTDIR%\Windows\SysWOW64\en-US\Mystify.scr.mui" icacls "%MOUNTDIR%\Windows\SysWOW64\en-US\Mystify.scr.mui" /Grant Administrators:F Move /y "%MOUNTDIR%\Windows\SysWOW64\en-US\Mystify.scr.mui" "%TRASH%\screensaver2" takeown /a /f "%MOUNTDIR%\Windows\SysWOW64\en-US\Ribbons.scr.mui" icacls "%MOUNTDIR%\Windows\SysWOW64\en-US\Ribbons.scr.mui" /Grant Administrators:F Move /y "%MOUNTDIR%\Windows\SysWOW64\en-US\Ribbons.scr.mui" "%TRASH%\screensaver2" takeown /a /f "%MOUNTDIR%\Windows\SysWOW64\en-US\scrnsave.scr.mui" icacls "%MOUNTDIR%\Windows\SysWOW64\en-US\scrnsave.scr.mui" /Grant Administrators:F Move /y "%MOUNTDIR%\Windows\SysWOW64\en-US\scrnsave.scr.mui" "%TRASH%\screensaver2" RMDIR /S /Q "%TRASH%\screensaver1" RMDIR /S /Q "%TRASH%\screensaver2" ::pause echo modifying dell system properties company logo Copy /Y "%~dp0Apple-Dell-Logo1.bmp" "%MOUNTDIR%\Windows\System32\oobe" echo modifying win logon background mkdir "%MOUNTDIR%\Windows\System32\oobe\info\backgrounds" Copy /Y "%~dp0backgroundDefault.jpg" "%MOUNTDIR%\Windows\System32\oobe\info\backgrounds" :: This part for windows defender ECHO Modifying "WINDOWS Defender Folder" takeown /a /f "%MOUNTDIR%\Program Files\Windows Defender" /r /d y icacls "%MOUNTDIR%\Program Files\Windows Defender" /Grant Administrators:F move /y "%MOUNTDIR%\Program Files\Windows Defender" "%TRASH%" RMDIR /S /Q "%TRASH%\Windows Defender" takeown /a /f "%MOUNTDIR%\Program Files (x86)\Windows Defender" /r /d y icacls "%MOUNTDIR%\Program Files (x86)\Windows Defender" /Grant Administrators:F move /y "%MOUNTDIR%\Program Files (x86)\Windows Defender" "%TRASH%\windefendx86" RMDIR /S /Q "%TRASH%\windefendx86" takeown /a /f "%MOUNTDIR%\ProgramData\Microsoft\Windows Defender" /r /d y icacls "%MOUNTDIR%\ProgramData\Microsoft\Windows Defender" /Grant Administrators:F move /y "%MOUNTDIR%\ProgramData\Microsoft\Windows Defender" "%TRASH%\windefend" RMDIR /S /Q "%TRASH%\windefend" echo windefender folder deletation phasedone ::pause :: For windows sidebar ECHO Modifying "Windows Sidebar" takeown /a /f "%MOUNTDIR%\Program Files\Windows Sidebar" /r /d y icacls "%MOUNTDIR%\Program Files\Windows Sidebar" /Grant Administrators:F move /y "%MOUNTDIR%\Program Files\Windows Sidebar" "%TRASH%" RMDIR /S /Q "%TRASH%\Windows Sidebar" takeown /a /f "%MOUNTDIR%\Program Files (x86)\Windows Sidebar" /r /d y icacls "%MOUNTDIR%\Program Files (x86)\Windows Sidebar" /Grant Administrators:F move /y "%MOUNTDIR%\Program Files (x86)\Windows Sidebar" "%TRASH%\sidebarx86" RMDIR /S /Q "%TRASH%\sidebarx86" :: Windows DVD Maker ECHO Modifying "DVD Maker" takeown /a /f "%MOUNTDIR%\Program Files\DVD Maker" /r /d y icacls "%MOUNTDIR%\Program Files\DVD Maker" /Grant Administrators:F move /y "%MOUNTDIR%\Program Files\DVD Maker" "%TRASH%" RMDIR /S /Q "%TRASH%\DVD Maker" echo dvd maker folder deletation phase done ::pause :: For Documents folder ECHO Modifying "Documents folder" takeown /a /f "%MOUNTDIR%\Users\Public" /r /d y icacls "%MOUNTDIR%\Users\Public" /Grant Administrators:F RMDIR /S /Q "%MOUNTDIR%\Users\Public\Music\Sample Music" RMDIR /S /Q "%MOUNTDIR%\Users\Public\Pictures\Sample Pictures" RMDIR /S /Q "%MOUNTDIR%\Users\Public\Videos\Sample Videos" Copy /Y "%~dp0Documents" "%MOUNTDIR%\Users\Public\Documents" ::For FirstUXRes ECHO Copying %MOUNTDIR%\Windows\System32\oobe\FirstUXRes.wim Copy /Y "%MOUNTDIR%\Windows\System32\oobe\FirstUXRes.wim" "%FirstUXRes%\FirstUXRes.wim" ECHO Mounting %FirstUXRes%\FirstUXRes.wim to %SUBMOUNTDIR% imagex /mountrw %FirstUXRes%\FirstUXRes.wim 1 %SUBMOUNTDIR% ECHO Modifying "%SUBMOUNTDIR%\FirstUXBackground.bmp" takeown /a /f "%SUBMOUNTDIR%\FirstUXBackground.bmp" icacls "%SUBMOUNTDIR%\FirstUXBackground.bmp" /Grant Administrators:F attrib -R %SUBMOUNTDIR%\FirstUXBackground.bmp Copy /Y "%~dp0FirstUXBackground.bmp" "%SUBMOUNTDIR%\FirstUXBackground.bmp" attrib +R "%SUBMOUNTDIR%\FirstUXBackground.bmp" ECHO Finished modifications, unmounting and commiting FirstUXRes.wim imagex /unmount /commit %SUBMOUNTDIR% ECHO Modifying "%MOUNTDIR%\Windows\System32\oobe\FirstUXRes.wim" takeown /a /f "%MOUNTDIR%\Windows\System32\oobe\FirstUXRes.wim" icacls "%MOUNTDIR%\Windows\System32\oobe\FirstUXRes.wim" /Grant Administrators:F DEL /S /Q "%MOUNTDIR%\Windows\System32\oobe\FirstUXRes.wim" Copy /Y "%FirstUXRes%\FirstUXRes.wim" "%MOUNTDIR%\Windows\System32\oobe\FirstUXRes.wim" ECHO. ECHO check if everything done ok or not pause ECHO Finished modifications, unmounting and commiting install.wim DISM /unmount-wim /mountdir:%MOUNTDIR% /commit ECHO. ECHO. :::::::::::::::::::::::::: For Boot.wim index 2:::::::::::::::::::::::::::::::::::::::::::: ECHO Mounting boot.wim:2 to %MOUNTDIR% DISM /mount-wim /wimfile:%DVDSOURCE%\sources\boot.wim /index:2 /mountdir:%MOUNTDIR% ECHO Modifying "%MOUNTDIR%\sources\background.bmp" takeown /a /f "%MOUNTDIR%\sources\background.bmp" icacls "%MOUNTDIR%\sources\background.bmp" /Grant Administrators:F DEL /S /Q "%MOUNTDIR%\sources\background.bmp" Copy /Y "%~dp0background.bmp" "%MOUNTDIR%\sources\background.bmp" ECHO Modifying "%MOUNTDIR%\Windows\System32\setup.bmp" TAKEOWN /a /f "%MOUNTDIR%\Windows\System32\setup.bmp" icacls "%MOUNTDIR%\Windows\System32\setup.bmp" /Grant Administrators:F DEL /S /Q "%MOUNTDIR%\Windows\System32\setup.bmp" Copy /Y "%~dp0setup.bmp" "%MOUNTDIR%\Windows\System32\setup.bmp" ECHO Modifying "%MOUNTDIR%\Windows\System32\winpe.bmp" TAKEOWN /a /f "%MOUNTDIR%\Windows\System32\winpe.bmp" icacls "%MOUNTDIR%\Windows\System32\winpe.bmp" /Grant Administrators:F DEL /S /Q "%MOUNTDIR%\Windows\System32\winpe.bmp" Copy /Y "%~dp0winpe.bmp" "%MOUNTDIR%\Windows\System32\winpe.bmp" ECHO Modifying "%MOUNTDIR%\sources\spwizimg.dll" TAKEOWN /a /f "%MOUNTDIR%\sources\spwizimg.dll" icacls "%MOUNTDIR%\sources\spwizimg.dll" /Grant Administrators:F DEL /S /Q "%MOUNTDIR%\sources\spwizimg.dll" Copy /Y "%~dp0spwizimg.dll" "%MOUNTDIR%\sources\spwizimg.dll" ECHO Modifying "%MOUNTDIR%\Windows\System32\imageres.dll" TAKEOWN /a /f "%MOUNTDIR%\Windows\System32\imageres.dll" icacls "%MOUNTDIR%\Windows\System32\imageres.dll" /Grant Administrators:F DEL /S /Q "%MOUNTDIR%\Windows\System32\imageres.dll" Copy /Y "%~dp0winpe.bmp" "%MOUNTDIR%\Windows\System32\imageres.dll" ECHO Modifying "%MOUNTDIR%\sources\W32UIRes.dll" TAKEOWN /a /f "%MOUNTDIR%\sources\W32UIRes.dll" icacls "%MOUNTDIR%\sources\W32UIRes.dll" /Grant Administrators:F DEL /S /Q "%MOUNTDIR%\sources\W32UIRes.dll" Copy /Y "%~dp0W32UIRes.dll" "%MOUNTDIR%\sources\W32UIRes.dll" ECHO Modifying "%MOUNTDIR%\Windows\System32\uxtheme.dll" TAKEOWN /a /f "%MOUNTDIR%\Windows\System32\uxtheme.dll" icacls "%MOUNTDIR%\Windows\System32\uxtheme.dll" /Grant Administrators:F DEL /S /Q "%MOUNTDIR%\Windows\System32\uxtheme.dll" Copy /Y "%~dp0UxTheme\x64\uxtheme.dll" "%MOUNTDIR%\Windows\System32\uxtheme.dll" ECHO Finished modifications, unmounting and commiting boot.wim DISM /unmount-wim /mountdir:%MOUNTDIR% /commit :::::::::::::::::::::::::::::::::For DVD source folder::::::::::::::::::::::::::::::::::::: ECHO Modifying "%DVDSOURCE%\sources\spwizimg.dll" takeown /a /f "%DVDSOURCE%\sources\spwizimg.dll" icacls "%DVDSOURCE%\sources\spwizimg.dll" /Grant Administrators:F DEL /Q "%DVDSOURCE%\sources\spwizimg.dll" Copy /Y "%~dp0spwizimg.dll" "%DVDSOURCE%\sources\spwizimg.dll" ECHO Modifying "%DVDSOURCE%\sources\W32UIRes.dll" takeown /a /f "%DVDSOURCE%\sources\W32UIRes.dll" icacls "%DVDSOURCE%\sources\W32UIRes.dll" /Grant Administrators:F DEL /Q "%DVDSOURCE%\sources\W32UIRes.dll" Copy /Y "%~dp0W32UIRes.dll" "%DVDSOURCE%\sources\W32UIRes.dll" ECHO Modifying "%DVDSOURCE%\sources\en-us\setup.exe.mui" takeown /a /f "%DVDSOURCE%\sources\en-us\setup.exe.mui" icacls "%DVDSOURCE%\sources\en-us\setup.exe.mui" /Grant Administrators:F DEL /Q "%DVDSOURCE%\sources\en-us\setup.exe.mui" Copy /Y "%~dp0setup.exe.mui" "%DVDSOURCE%\sources\en-us\setup.exe.mui" ECHO Modifying "%DVDSOURCE%\sources\background_cli.bmp" takeown /a /f "%DVDSOURCE%\sources\background_cli.bmp" icacls "%DVDSOURCE%\sources\background_cli.bmp" /Grant Administrators:F DEL /Q "%DVDSOURCE%\sources\background_cli.bmp" Copy /Y "%~dp0background_cli.bmp" "%DVDSOURCE%\sources\background_cli.bmp" ECHO "Copying $OEM$ files to sources " ECHO "Please "U" copy essential files to $OEM$" pause xCopy /S /Y "%~dp0$OEM$" "%DVDSOURCE%\sources\$OEM$" ECHO. ECHO Cleaning up... RMDIR /S /Q %FirstUXRes% RMDIR /S /Q %MOUNTDIR% RMDIR /S /Q %SUBMOUNTDIR% RMDIR /S /Q %TRASH% ECHO compressing and exporting Install.wim "n" boot.wim pause imagex /compress maximum /export C:\7MSDN\sources\install.wim 4 C:\install.wim "%ImageDescription%" imagex /compress maximum /export C:\7MSDN\sources\boot.wim 1 C:\boot.wim imagex /compress maximum /export C:\7MSDN\sources\boot.wim 2 C:\boot.wim echo "copying install.wim and boot.wim to 7MSDN" xcopy /Y "C:\install.wim" "%DVDSOURCE%\sources\install.wim" xcopy /Y "C:\boot.wim" "%DVDSOURCE%\sources\boot.wim" RMDIR "%STORE%" Echo "Making ISO file" mkdir "%STORE%" Echo Check if all commands executed sucessfully pause oscdimg -bC:\7MSDN\efi\microsoft\boot\efisys.bin -pEF -m -u2 -udfver102 -bootdata:2#p0,e,bC:\7MSDN\boot\etfsboot.com#pEF,e,bC:\7MSDN\efi\microsoft\boot\efisys.bin -lWin7DVD C:\7MSDN\ D:\7ISO\7ultimate\7Ultaug.iso pause ECHO Finished. Exit