This is a snippet of code of the OEM Branding that I have been using successfully for setting up W7 on first run,
I Now have about 20 office computers to build for a small business and thought I would brand with the specific company logo etc.
I added Custom to my oem list and have not tested this out as of yet, but if any gurus have a better way I am Open..
Thanx, Probie
Code: Select all
@echo off
::
:: SILENT OEM BRANDING FOR WINDOWS 7
::
:: Work off USB Root
for %%i in (d e f g h i j k l m n o p q r s) do if exist %%i:\sources\install.wim set usb=%%i:
::
:: Set Variable Parameters
set manf=wmic computersystem get manufacturer
set oem=if not errorlevel 1
set custom=if errorlevel 1
set copy=xcopy /cqhysei
set reg=regedit /s
set cmd=cmd /c
::
:: Minimize
min.exe
::
::Check
IF EXIST "wmic computersystem get manufacturer" GOTO :OEM
IF NOT EXIST "wmic computersystem get manufacturer" GOTO :CUSTOM
::
:OEM
::
%manf% | findstr /i "ACER">nul
%oem% set man=ACER&goto :ACER
::
%manf% | findstr /i "COMPAQ">nul
%oem% set man=COMPAQ&goto :COMPAQ
::
%manf% | findstr /I "DELL">nul
%oem% set man=DELL&goto :DELL
::
:ACER
::
%reg% %usb%\wpi\copy\oem\ACER\ACER.reg
%cmd% %copy% %usb%\wpi\copy\oem\ACER\WALLPAPER.jpg %windir%\web\wallpaper
%cmd% %copy% %usb%\wpi\copy\oem\ACER\ACER.theme %windir%\resources\themes
%cmd% %copy% %usb%\wpi\copy\oem\ACER\ACER_BADGE.bmp %windir%\system32\oobe\info
wmic process where name="dllhost.exe" call terminate>nul
:: Set Theme
rundll32.exe %SystemRoot%\system32\shell32.dll,Control_RunDLL %SystemRoot%\system32\desk.cpl desk,@Themes /Action:OpenTheme /file:"C:\Windows\Resources\Themes\ACER.theme"
:: Refresh Desktop
ping -n 2 127.0.0.1>nul
taskkill /f /im explorer.exe>nul
start explorer.exe>nul
goto :END
::
:CUSTOM
%reg% %usb%\wpi\copy\oem\DEFAULT\Default.reg
%cmd% %copy% %usb%\wpi\copy\oem\DEFAULT\WALLPAPER.jpg %windir%\web\wallpaper
%cmd% %copy% %usb%\wpi\copy\oem\DEFAULT\DEFAULT.theme %windir%\resources\themes
%cmd% %copy% %usb%\wpi\copy\oem\DEFAULT\DEFAULT_BADGE.bmp %windir%\system32\oobe\info
wmic process where name="dllhost.exe" call terminate>nul
:: Set Theme
rundll32.exe %SystemRoot%\system32\shell32.dll,Control_RunDLL %SystemRoot%\system32\desk.cpl desk,@Themes /Action:OpenTheme /file:"C:\Windows\Resources\Themes\Default.theme"
:: Refresh Desktop
ping -n 2 127.0.0.1>nul
taskkill /f /im explorer.exe>nul
start explorer.exe>nul
GOTO :END
::
:END
::
Exit