Solved OEM Branding Script From USB

Microsoft Office 2003 professional oem
April 30, 2013 at 04:17:22
Specs: Windows 7 Enterprise, Intel(R) Core(TM) CPU 6300 @1.86GHz With 2GB Ram
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


See More: OEM Branding Script From USB

Report •

✔ Best Answer
May 2, 2013 at 08:48:25
I have managed to write a .bat file for you the way you wanted. Insert the USB flash disk and open it. Run the file oem.bat from the USB disk. The file will first request Admin Privileges and then run the commands on it.

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



#1
April 30, 2013 at 09:15:21
Where do you want the Company Information to show up in the GUI? Where do you want the oem .bmp to show up in the GUI?

Law if Logical Argument: Anything is possible if you don't know what you're talking about.


Report •

#2
April 30, 2013 at 09:25:14
I guess maybe the better question is where are you placing the .bmp file and which registry key are you changing or updating?

Law if Logical Argument: Anything is possible if you don't know what you're talking about.


Report •

#3
May 1, 2013 at 00:10:11
Hi

Thanks for the reply, the registry key i want to change is the following:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation

I would like to add the following information to the system properties:

Logo - path_of_OEMlogo.bmp_file
Manufacturer - Any_desired_name
Model - Any_desired_name
SupportHours - Any_desired_time_amount_like_24x7
SupportPhone - Any_desired_phone_number
SupportURL - Any_desired_URL

Many Thanks
Tor Fey


Report •

Related Solutions

#4
May 1, 2013 at 00:23:11
Prepare a bat file such as oem.bat that has the following text on it:

Copy companylogo.bmp %windir%\System32\oemlogo.bmp
REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation /V Logo /T REG_SZ /D "C:\Windows\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

Based on this, you can expand the info as much as you wish. Add another REG ADD HKLM\.. and replace Model with SupportHours and Model Name of Computer with support hours data, etc. Pls note each REG ADD HKLM\.. should be on one line.

Put the companylogo.bmp and the oem.bat on the USB stick.

Then open a command prompt with admin privileges. The command prompt opens to \Windows\System32

Just type in the driveletter and a colon such as X: where X is the drive letter of the usb stick and run the oem.bat file.

Note I assumed Windows is on C:. If Windows is not on C:, then Logo line should be modified like this: Change REG_SZ to REG_EXPAND_SZ and "C:\Windows\System32\oemlogo.bmp" to "%windir%\System32\eomlogo.bmp"

CoolGuy


Report •

#5
May 2, 2013 at 00:13:24
Hi CoolGuy

Many thanks for all your help.

Just one question though, do i have to run the .bat file from the cmd prompt or can i just run it from the usb device?

Regards
Tor Fey


Report •

#6
May 2, 2013 at 05:18:06
You can try. Make sure you run the .bat file with admin privileges. Otherwise, the .bat file cannot write to HKLM registry hive.

Furthermore, the copy command in the .bat file may not find the companylogo.bmp file.

Anyway, try it. But my suggestion is, open a command prompt with admin privileges and change to the drive letter of the USB stick and run the .bat file. The drive letter may change from PC to PC.

EDIT: I tried to run the .bat file with admin rights from the usb stick. The registry was updated with the values and data but the company logo file was not found. I manually copied the file to System32 folder and the picture was also appeared in the System Properties window.

CoolGuy


Report •

#7
May 2, 2013 at 08:48:25
✔ Best Answer
I have managed to write a .bat file for you the way you wanted. Insert the USB flash disk and open it. Run the file oem.bat from the USB disk. The file will first request Admin Privileges and then run the commands on it.

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


Report •

#8
May 3, 2013 at 00:13:53
Hi CoolGuy

Many thanks for this .bat file it is very much appreciated. And thanks very much for all your help.


Regards
Tor Fey


Report •

#9
August 13, 2013 at 08:43:57
@rem imprimi uma mensagem na tela
@echo ----------------------------------------------------------
@echo OEMInformation / i9 Inform tica - T‚cnico Alexandre
@echo ----------------------------------------------------------

@echo off
@rem muda a cor da tela do script
@color 17
>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 local de origem da imagem emlogo-i9.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 "i9 Inform…tica - T‚cnico Alexandre" /F
REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation /V Model /T REG_SZ /D "Notebook INFOWAY W7540" /F
REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation /V SupportHours /T REG_SZ /D "Segunda … S bado das 08:00hs …s 18:00hs" /F
REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation /V SupportPhone /T REG_SZ /D "+55 64 8429-8988" /F
REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation /V SupportURL /T REG_SZ /D "http://www.facebook.com/kings.street.car" /F

@rem imprimi uma mensagem na tela
@echo --------------------
@echo OEM Finalizado!
@echo --------------------

@pause


Report •

Ask Question