Good Day To You All.
Would someone be able to provide me with a way of inserting OEM information & a .BMP image from USB to the registry, so effectively branding the machine with our company info, I need to do this from USB as we have so many machine to brand; manually editing the registry would take hours, when a scrip would do it in seconds.
So ideally I would need the script to do the following:
• Set company information to the registry
• Copy .BMP image from USB to system32 folder and insert image as OEM image
Any help would greatly be appreciated.
Regards
Tor Fey
The OEM.BAT file is (copy everything below into OEM.BAT file):
Title Updating Company Information
@echo off
>nul 2>&1 “%SYSTEMROOT%\system32\cacls.exe” “%SYSTEMROOT%\system32\config\system”
if ‘%errorlevel%’ NEQ ‘0’ (
echo Requesting administrative privileges…
goto UACPrompt
) else ( goto gotAdmin )
:UACPrompt
echo Set UAC = CreateObject^(“Shell.Application”^) > “%temp%\getadmin.vbs”
set params = %*:”=””
echo UAC.ShellExecute “%~s0”, “%params%”, “”, “runas”, 1 >> “%temp%\getadmin.vbs”
“%temp%\getadmin.vbs”
exit /B
:gotAdmin
if exist “%temp%\getadmin.vbs” ( del “%temp%\getadmin.vbs” )
pushd “%CD%”
CD /D “%~dp0”
CD\
Copy companylogo.bmp %windir%\System32\oemlogo.bmp
REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation /V Logo /T REG_EXPAND_SZ /D “%Windir%\System32\oemlogo.bmp” /F
REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation /V Manufacturer /T REG_SZ /D “XXX Company” /F
REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation /V Model /T REG_SZ /D “Model Name of Computer” /F
CoolGuy