-
Notifications
You must be signed in to change notification settings - Fork 0
/
update_OEM_info.bat
35 lines (29 loc) · 1.37 KB
/
update_OEM_info.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
@echo off
setlocal
title OEM Info Editor v0.3
:: Ensure admin privileges
fltmc >nul 2>&1 || (
echo Administrator privileges are required.
PowerShell Start -Verb RunAs '%0' 2> nul || (
echo Right-click on the script and select "Run as administrator".
pause & exit 1
)
exit 0
)
echo Welcome to the OEM Info Editor by @its_ashu_otf
REM Prompt the user to input company information
echo Please enter the following OEM details:
set /p companyName="Company Name: "
set /p companyWebsite="Company Website: "
set /p supportContact="Support Contact Information: "
set /p supportHours="Support Hours: "
set /p deviceModel="Device Model: "
REM Update the OEM information in the registry
echo Updating OEM information in the registry...
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation" /v Manufacturer /d "%companyName%" /f
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation" /v SupportURL /d "%companyWebsite%" /f
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation" /v SupportPhone /d "%supportContact%" /f
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation" /v SupportHours /d "%supportHours%" /f
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation" /v Model /d "%deviceModel%" /f
echo OEM information has been successfully updated.
endlocal