@ECHO OFF
::CMD FOR CHS::
START /W %Systemroot%\Setup\AIDA64\AIDA64.EXE /R /SILENT /NOICONS /INI /CUSTOM %Systemroot%\Setup\AIDA64\aida64.rpf >nul
SET RQR=REG QUERY "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v "EditionID" 
SET INL=IF NOT ERRORLEVEL 1 
SET REP="%SYSTEMDRIVE%\AIDA64 REPORTS\report.ini" 
findstr /E /C:"SLIC Version=2.1" %REP% && %INL% goto DISCERN
GOTO OEM7
::------------------------------------------------------------------------------::
:DISCERN
findstr /E /C:"OEM ID=FSC" %REP% >nul 
%INL% SET BRAND=FSC&goto FSCINS
findstr /E /C:"OEM ID=FUJ" %REP% >nul 
%INL% SET BRAND=FSC&goto FSCINS
findstr /E /C:"OEM ID=TOSHIB" %REP% >nul 
%INL% SET BRAND=TOSHIBA&goto TOSHIBAINS
findstr /E /C:"OEM ID=TOSASU" %REP% >nul 
%INL% SET BRAND=TOSHIBA&goto TOSHIBAINS
findstr /E /C:"OEM ID=TOSCPL" %REP% >nul 
%INL% SET BRAND=TOSHIBA&goto TOSHIBAINS
findstr /E /C:"OEM ID=TOSINV" %REP% >nul 
%INL% SET BRAND=TOSHIBA&goto TOSHIBAINS
findstr /E /C:"OEM ID=TOSQCI" %REP% >nul 
%INL% SET BRAND=TOSHIBA&goto TOSHIBAINS
findstr /E /C:"OEM ID=ACRSYS" %REP% && goto ACER_GROUPS
findstr /E /C:"OEM ID=LENOVO" %REP% && goto LENOVO_GROUPS
findstr /E /C:"OEM ID=HPQOEM" %REP% && goto HP_GROUPS
findstr /E /C:"OEM Table ID=ProLiant" %REP% >nul 
%INL% SET BRAND=HP&goto HPINS
::-------------------------------------------------::
findstr /E /C:"OEM ID=ALWARE" %REP% >nul 
%INL% SET BRAND=ALIENWARE&goto DELL
findstr /E /C:"OEM ID=_ASUS_" %REP% >nul 
%INL% SET BRAND=ASUS&goto ASUS
findstr /E /C:"OEM Table ID=Joybook" %REP% >nul 
%INL% SET BRAND=BENQ&goto DELL
findstr /E /C:"OEM ID=DELL" %REP% >nul 
%INL% SET BRAND=DELL&goto DELL
findstr /E /C:"OEM ID=Exc" %REP% >nul 
%INL% SET BRAND=ECS&goto ECS
findstr /E /C:"OEM Table ID=FOUNDRPC" %REP% >nul 
%INL% SET BRAND=FOUNDER&goto FOUNDER
findstr /E /C:"OEM Table ID=GBTUACPI" %REP% >nul 
%INL% SET BRAND=GIGABYTE&goto GIGABYTE
findstr /E /C:"OEM Table ID=cecgwpc" %REP% >nul 
%INL% SET BRAND=GWALL&goto GWALL
findstr /E /C:"OEM ID=haier" %REP% >nul 
%INL% SET BRAND=HAIER&goto HAIER
findstr /E /C:"OEM Table ID=PARADISE" %REP% >nul 
%INL% SET BRAND=HASEE&goto HASEE
findstr /E /C:"OEM Table ID=HEDY2006" %REP% >nul 
%INL% SET BRAND=HEDY&goto DELL
findstr /E /C:"OEM Table ID=LGPC" %REP% >nul 
%INL% SET BRAND=LG&goto DELL
findstr /E /C:"OEM ID=MSI_NB" %REP% >nul 
%INL% SET BRAND=MSI&goto MSI
findstr /E /C:"OEM ID=SECCSD" %REP% >nul 
%INL% SET BRAND=SAMSUNG&goto SAMSUNG
findstr /E /C:"OEM Table ID=VAIO" %REP% >nul 
%INL% SET BRAND=SONY&goto SONY
findstr /E /C:"OEM ID=THTFPC" %REP% >nul 
%INL% SET BRAND=TONGFANG&goto TONGFANG
::-------------------------------------------------::
findstr /E /C:"OEM Table ID=viliv" %REP% >nul 
%INL% SET BRAND=VILIV&goto VILIV
findstr /E /C:"OEM ID=DSGLTD" %REP% >nul 
%INL% SET BRAND=ADVENT&goto ADVENT
findstr /E /C:"OEM ID=AQUARI" %REP% >nul 
%INL% SET BRAND=AQUARIUS&goto AQUARIUS
findstr /E /C:"OEM ID=Dealin" %REP% >nul 
%INL% SET BRAND=DEALIN&goto DEALIN
findstr /E /C:"OEM ID=Datate" %REP% >nul 
%INL% SET BRAND=EXPER&goto EXPER
findstr /E /C:"OEM ID=HSPW07" %REP% >nul 
%INL% SET BRAND=HANNSPREE&goto HANNSPREE
findstr /E /C:"OEM ID=HCLINF" %REP% >nul 
%INL% SET BRAND=HCL&goto HCL
findstr /E /C:"OEM ID=higrad" %REP% >nul 
%INL% SET BRAND=HIGRADE&goto HIGRADE
findstr /E /C:"OEM ID=HYRSLP" %REP% >nul 
%INL% SET BRAND=HYRICAN&goto HYRICAN
findstr /E /C:"OEM ID=JOOYON" %REP% >nul 
%INL% SET BRAND=JOOYON&goto JOOYON
findstr /E /C:"OEM ID=KRFTWY" %REP% >nul 
%INL% SET BRAND=KRAFTWAY&goto KRAFTWAY
findstr /E /C:"OEM ID=K-Syst" %REP% >nul 
%INL% SET BRAND=KSYSTEMS&goto KSYSTEMS
findstr /E /C:"OEM ID=LANIX1" %REP% >nul 
%INL% SET BRAND=LANIX&goto LANIX
findstr /E /C:"OEM ID=MEDION" %REP% >nul 
%INL% SET BRAND=MEDION&goto MEDION
findstr /E /C:"OEM ID=NEC" %REP% >nul 
%INL% SET BRAND=NEC&goto NEC
findstr /E /C:"OEM ID=NOKIA" %REP% >nul 
%INL% SET BRAND=NOKIA&goto NOKIA
findstr /E /C:"OEM ID=QUANMX" %REP% >nul 
%INL% SET BRAND=QUANMAX&goto QUANMAX
findstr /E /C:"OEM ID=stinfo" %REP% >nul 
%INL% SET BRAND=SEMP&goto SEMP
findstr /E /C:"OEM ID=synnex" %REP% >nul 
%INL% SET BRAND=SYNNEX&goto SYNNEX
findstr /E /C:"OEM ID=SYSMAX" %REP% >nul 
%INL% SET BRAND=SYSTEMAX&goto SYSTEMAX
findstr /E /C:"OEM ID=TRIGEM" %REP% >nul 
%INL% SET BRAND=TRIGEM&goto TRIGEM
findstr /E /C:"OEM ID=THOA21" %REP% >nul 
%INL% SET BRAND=TWINHEAD&goto ADVENT
findstr /E /C:"OEM ID=VSCAIO" %REP% >nul 
%INL% SET BRAND=VSONIC&goto ADVENT
findstr /E /C:"OEM ID=WORTMA" %REP% >nul 
%INL% SET BRAND=WORTMANN&goto WORTMANN
goto DEFAULT
::------------------------------------------------------------------------------::
:ACER_GROUPS
WMIC BASEBOARD | findstr /I "GATEWAY Gatewa" >nul
%INL% SET BRAND=GATEWAY&goto ACERINS
WMIC BIOS | findstr /I "GATEWAY Gatewa" >nul
%INL% SET BRAND=GATEWAY&goto ACERINS
WMIC COMPUTERSYSTEM | findstr /I "GATEWAY Gatewa" >nul
%INL% SET BRAND=GATEWAY&goto ACERINS
WMIC CSPRODUCT | findstr /I "GATEWAY Gatewa" >nul
%INL% SET BRAND=GATEWAY&goto ACERINS

WMIC BASEBOARD | findstr /I "PACKARD BELL PACKARD-BELL" >nul
%INL% SET BRAND=PBELL&goto ACERINS
WMIC BIOS | findstr /I "PACKARD BELL PACKARD-BELL" >nul
%INL% SET BRAND=PBELL&goto ACERINS
WMIC COMPUTERSYSTEM | findstr /I "PACKARD BELL PACKARD-BELL" >nul
%INL% SET BRAND=PBELL&goto ACERINS
WMIC CSPRODUCT | findstr /I "PACKARD BELL PACKARD-BELL" >nul
%INL% SET BRAND=PBELL&goto ACERINS

WMIC BASEBOARD | findstr /I "EMACHINES" >nul
%INL% SET BRAND=EMACHINES&goto ACERINS
WMIC BIOS | findstr /I "EMACHINES" >nul
%INL% SET BRAND=EMACHINES&goto ACERINS
WMIC COMPUTERSYSTEM | findstr /I "EMACHINES" >nul
%INL% SET BRAND=EMACHINES&goto ACERINS
WMIC CSPRODUCT | findstr /I "EMACHINES" >nul
%INL% SET BRAND=EMACHINES&goto ACERINS
SET BRAND=ACER&goto ACERINS

:HP_GROUPS
WMIC BASEBOARD | findstr /I "COMPAQ" >nul
%INL% SET BRAND=COMPAQ&goto HPINS
WMIC BIOS | findstr /I "COMPAQ" >nul
%INL% SET BRAND=COMPAQ&goto HPINS
WMIC COMPUTERSYSTEM | findstr /I "COMPAQ" >nul
%INL% SET BRAND=COMPAQ&goto HPINS
WMIC CSPRODUCT | findstr /I "COMPAQ" >nul
%INL% SET BRAND=COMPAQ&goto HPINS
SET BRAND=HP&goto HPINS

:LENOVO_GROUPS
findstr /C:"OEM Table ID=TP-6" %REP% >nul 
%INL% SET BRAND=Thinkpad&goto LENOVOINS
findstr /C:"OEM Table ID=TP-7" %REP% >nul 
%INL% SET BRAND=Thinkpad&goto LENOVOINS
findstr /C:"OEM Table ID=TP-8" %REP% >nul 
%INL% SET BRAND=Thinkpad&goto LENOVOINS
findstr /C:"OEM Table ID=TP-9" %REP% >nul 
%INL% SET BRAND=Thinkpad&goto LENOVOINS
SET BRAND=LENOVO&goto LENOVOINS
::------------------------------------------------------------------------------::
:ASUS
%RQR% | findstr /I "STARTER" && %INL% SET SLPKEY=6K6WB-X73TD-KG794-FJYHG-YCJVG
%RQR% | findstr /I "HOMEBASIC"  && %INL% SET SLPKEY=89G97-VYHYT-Y6G8H-PJXV6-77GQM
%RQR% | findstr /I "HOMEPREMIUM"  && %INL% SET SLPKEY=2QDBX-9T8HR-2QWT6-HCQXJ-9YQTR
%RQR% | findstr /I "PROFESSIONAL"  && %INL% SET SLPKEY=2WCJK-R8B4Y-CWRF2-TRJKB-PV9HW
%RQR% | findstr /I "ULTIMATE" && %INL% SET SLPKEY=2Y4WT-DHTBF-Q6MMK-KYK6X-VKM6G
goto OEMINS

:DELL
%RQR% | findstr /I "STARTER" && %INL% SET SLPKEY=36Q3Y-BBT84-MGJ3H-FT7VD-FG72J
%RQR% | findstr /I "HOMEBASIC"  && %INL% SET SLPKEY=36T88-RT7C6-R38TQ-RV8M9-WWTCY
%RQR% | findstr /I "HOMEPREMIUM"  && %INL% SET SLPKEY=6RBBT-F8VPQ-QCPVQ-KHRB8-RMV82
%RQR% | findstr /I "PROFESSIONAL"  && %INL% SET SLPKEY=32KD2-K9CTF-M3DJT-4J3WC-733WD
%RQR% | findstr /I "ULTIMATE" && %INL% SET SLPKEY=342DG-6YJR8-X92GV-V7DCV-P4K27
goto OEMINS
:ECS
%RQR% | findstr /I "STARTER" && %INL% SET SLPKEY=BHP4B-MXP9G-RG7KQ-T8R84-CW3D3
%RQR% | findstr /I "HOMEBASIC"  && %INL% SET SLPKEY=MB4HF-2Q8V3-W88WR-K7287-2H4CP
%RQR% | findstr /I "HOMEPREMIUM"  && %INL% SET SLPKEY=VQB3X-Q3KP8-WJ2H8-R6B6D-7QJB7
%RQR% | findstr /I "PROFESSIONAL"  && %INL% SET SLPKEY=YKHFT-KW986-GK4PY-FDWYH-7TP9F
%RQR% | findstr /I "ULTIMATE" && %INL% SET SLPKEY=FJGCP-4DFJD-GJY49-VJBQ7-HYRR2
goto OEMINS
:FOUNDER
%RQR% | findstr /I "STARTER" && %INL% SET SLPKEY=6K6WB-X73TD-KG794-FJYHG-YCJVG
%RQR% | findstr /I "HOMEBASIC"  && %INL% SET SLPKEY=7WGMV-QFYXX-64DCG-HQFWM-DWGKY
%RQR% | findstr /I "HOMEPREMIUM"  && %INL% SET SLPKEY=2QDBX-9T8HR-2QWT6-HCQXJ-9YQTR
%RQR% | findstr /I "PROFESSIONAL"  && %INL% SET SLPKEY=2WCJK-R8B4Y-CWRF2-TRJKB-PV9HW
%RQR% | findstr /I "ULTIMATE" && %INL% SET SLPKEY=2Y4WT-DHTBF-Q6MMK-KYK6X-VKM6G
goto OEMINS
:GIGABYTE
%RQR% | findstr /I "STARTER" && %INL% SET SLPKEY=6K6WB-X73TD-KG794-FJYHG-YCJVG
%RQR% | findstr /I "HOMEBASIC"  && %INL% SET SLPKEY=89G97-VYHYT-Y6G8H-PJXV6-77GQM
%RQR% | findstr /I "HOMEPREMIUM"  && %INL% SET SLPKEY=2QDBX-9T8HR-2QWT6-HCQXJ-9YQTR
%RQR% | findstr /I "PROFESSIONAL"  && %INL% SET SLPKEY=2WCJK-R8B4Y-CWRF2-TRJKB-PV9HW
%RQR% | findstr /I "ULTIMATE" && %INL% SET SLPKEY=2Y4WT-DHTBF-Q6MMK-KYK6X-VKM6G
goto OEMINS
:GWALL
%RQR% | findstr /I "STARTER" && %INL% SET SLPKEY=RDJXR-3M32B-FJT32-QMPGB-GCFF6
%RQR% | findstr /I "HOMEBASIC"  && %INL% SET SLPKEY=MB4HF-2Q8V3-W88WR-K7287-2H4CP
%RQR% | findstr /I "HOMEPREMIUM"  && %INL% SET SLPKEY=VQB3X-Q3KP8-WJ2H8-R6B6D-7QJB7
%RQR% | findstr /I "PROFESSIONAL"  && %INL% SET SLPKEY=YKHFT-KW986-GK4PY-FDWYH-7TP9F
%RQR% | findstr /I "ULTIMATE" && %INL% SET SLPKEY=FJGCP-4DFJD-GJY49-VJBQ7-HYRR2
goto OEMINS
:HAIER
%RQR% | findstr /I "STARTER" && %INL% SET SLPKEY=6K6WB-X73TD-KG794-FJYHG-YCJVG
%RQR% | findstr /I "HOMEBASIC"  && %INL% SET SLPKEY=89G97-VYHYT-Y6G8H-PJXV6-77GQM
%RQR% | findstr /I "HOMEPREMIUM"  && %INL% SET SLPKEY=2QDBX-9T8HR-2QWT6-HCQXJ-9YQTR
%RQR% | findstr /I "PROFESSIONAL"  && %INL% SET SLPKEY=2WCJK-R8B4Y-CWRF2-TRJKB-PV9HW
%RQR% | findstr /I "ULTIMATE" && %INL% SET SLPKEY=2Y4WT-DHTBF-Q6MMK-KYK6X-VKM6G
goto OEMINS
:HASEE
%RQR% | findstr /I "STARTER" && %INL% SET SLPKEY=6K6WB-X73TD-KG794-FJYHG-YCJVG
%RQR% | findstr /I "HOMEBASIC"  && %INL% SET SLPKEY=89G97-VYHYT-Y6G8H-PJXV6-77GQM
%RQR% | findstr /I "HOMEPREMIUM"  && %INL% SET SLPKEY=2QDBX-9T8HR-2QWT6-HCQXJ-9YQTR
%RQR% | findstr /I "PROFESSIONAL"  && %INL% SET SLPKEY=2WCJK-R8B4Y-CWRF2-TRJKB-PV9HW
%RQR% | findstr /I "ULTIMATE" && %INL% SET SLPKEY=2Y4WT-DHTBF-Q6MMK-KYK6X-VKM6G
goto OEMINS
:MSI
%RQR% | findstr /I "STARTER" && %INL% SET SLPKEY=2W4DJ-JFFJV-DMCPP-2C3X8-883DP
%RQR% | findstr /I "HOMEBASIC"  && %INL% SET SLPKEY=2TY7W-H4DD4-MB62F-BD9C3-88TM6
%RQR% | findstr /I "HOMEPREMIUM"  && %INL% SET SLPKEY=4G3GR-J6JDJ-D96PV-T9B9D-M8X2Q
%RQR% | findstr /I "PROFESSIONAL"  && %INL% SET SLPKEY=2WCJK-R8B4Y-CWRF2-TRJKB-PV9HW
%RQR% | findstr /I "ULTIMATE" && %INL% SET SLPKEY=2Y4WT-DHTBF-Q6MMK-KYK6X-VKM6G
goto OEMINS
:SAMSUNG
%RQR% | findstr /I "STARTER" && %INL% SET SLPKEY=PV9BD-YBRX6-CTMG6-CCMJY-X8XG7
%RQR% | findstr /I "HOMEBASIC"  && %INL% SET SLPKEY=2P6PB-G7YVY-W46VJ-BXJ36-PGGTG
%RQR% | findstr /I "HOMEPREMIUM"  && %INL% SET SLPKEY=CQBVJ-9J697-PWB9R-4K7W4-2BT4J
%RQR% | findstr /I "PROFESSIONAL"  && %INL% SET SLPKEY=GMJQF-JC7VC-76HMH-M4RKY-V4HX6
%RQR% | findstr /I "ULTIMATE" && %INL% SET SLPKEY=49PB6-6BJ6Y-KHGCQ-7DDY6-TF7CD
goto OEMINS
:SONY
%RQR% | findstr /I "STARTER" && %INL% SET SLPKEY=32J2V-TGQCY-9QJXP-Q3FVT-X8BQ7
%RQR% | findstr /I "HOMEBASIC"  && %INL% SET SLPKEY=YV7QQ-RCXQ9-KTBHC-YX3FG-FKRW8
%RQR% | findstr /I "HOMEPREMIUM"  && %INL% SET SLPKEY=H4JWX-WHKWT-VGV87-C7XPK-CGKHQ
%RQR% | findstr /I "PROFESSIONAL"  && %INL% SET SLPKEY=H9M26-6BXJP-XXFCY-7BR4V-24X8J
%RQR% | findstr /I "ULTIMATE" && %INL% SET SLPKEY=YJJYR-666KV-8T4YH-KM9TB-4PY2W
goto OEMINS
:TONGFANG
%RQR% | findstr /I "STARTER" && %INL% SET SLPKEY=6K6WB-X73TD-KG794-FJYHG-YCJVG
%RQR% | findstr /I "HOMEBASIC"  && %INL% SET SLPKEY=9DBMT-GXRWM-6Q9Y3-WMYM8-FJCBW
%RQR% | findstr /I "HOMEPREMIUM"  && %INL% SET SLPKEY=2QDBX-9T8HR-2QWT6-HCQXJ-9YQTR
%RQR% | findstr /I "PROFESSIONAL"  && %INL% SET SLPKEY=2WCJK-R8B4Y-CWRF2-TRJKB-PV9HW
%RQR% | findstr /I "ULTIMATE" && %INL% SET SLPKEY=2Y4WT-DHTBF-Q6MMK-KYK6X-VKM6G
goto OEMINS
::-------------------------------------------------::
:ADVENT
%RQR% | findstr /I "STARTER" && %INL% SET SLPKEY=6K6WB-X73TD-KG794-FJYHG-YCJVG
%RQR% | findstr /I "HOMEBASIC" && %INL% SET SLPKEY=89G97-VYHYT-Y6G8H-PJXV6-77GQM
%RQR% | findstr /I "HOMEPREMIUM" && %INL% SET SLPKEY=38JTJ-VBPFW-XFQDR-PJ794-8447M
%RQR% | findstr /I "PROFESSIONAL" && %INL% SET SLPKEY=2WCJK-R8B4Y-CWRF2-TRJKB-PV9HW
%RQR% | findstr /I "ULTIMATE" && %INL% SET SLPKEY=2Y4WT-DHTBF-Q6MMK-KYK6X-VKM6G
goto OEMINS
:AQUARIUS
%RQR% | findstr /I "STARTER" && %INL% SET SLPKEY=RDJXR-3M32B-FJT32-QMPGB-GCFF6
%RQR% | findstr /I "HOMEBASIC" && %INL% SET SLPKEY=MB4HF-2Q8V3-W88WR-K7287-2H4CP
%RQR% | findstr /I "HOMEPREMIUM" && %INL% SET SLPKEY=VQB3X-Q3KP8-WJ2H8-R6B6D-7QJB7
%RQR% | findstr /I "PROFESSIONAL" && %INL% SET SLPKEY=YKHFT-KW986-GK4PY-FDWYH-7TP9F
%RQR% | findstr /I "ULTIMATE" && %INL% SET SLPKEY=FJGCP-4DFJD-GJY49-VJBQ7-HYRR2
goto OEMINS
:DEALIN
%RQR% | findstr /I "STARTER" && %INL% SET SLPKEY=RDJXR-3M32B-FJT32-QMPGB-GCFF6
%RQR% | findstr /I "HOMEBASIC" && %INL% SET SLPKEY=6M78P-JJRQP-9C4RX-RPK7G-3VTH3
%RQR% | findstr /I "HOMEPREMIUM" && %INL% SET SLPKEY=8YDX9-B7MMG-82XD9-V88G9-MR92T
%RQR% | findstr /I "PROFESSIONAL" && %INL% SET SLPKEY=6BJ27-DVBFF-VKQC8-7JPQP-TJKYY
%RQR% | findstr /I "ULTIMATE" && %INL% SET SLPKEY=FJGCP-4DFJD-GJY49-VJBQ7-HYRR2
goto OEMINS
:EXPER
%RQR% | findstr /I "STARTER" && %INL% SET SLPKEY=4FRH4-WQDGJ-M9HRY-K73D8-RGT3C
%RQR% | findstr /I "HOMEBASIC" && %INL% SET SLPKEY=89G97-VYHYT-Y6G8H-PJXV6-77GQM
%RQR% | findstr /I "HOMEPREMIUM" && %INL% SET SLPKEY=2QDBX-9T8HR-2QWT6-HCQXJ-9YQTR
%RQR% | findstr /I "PROFESSIONAL" && %INL% SET SLPKEY=2WCJK-R8B4Y-CWRF2-TRJKB-PV9HW
%RQR% | findstr /I "ULTIMATE" && %INL% SET SLPKEY=2Y4WT-DHTBF-Q6MMK-KYK6X-VKM6G
goto OEMINS
:HANNSPREE
%RQR% | findstr /I "STARTER" && %INL% SET SLPKEY=BRFCY-XMXRV-28JHQ-F6D9B-BV73C
%RQR% | findstr /I "HOMEBASIC" && %INL% SET SLPKEY=MB4HF-2Q8V3-W88WR-K7287-2H4CP
%RQR% | findstr /I "HOMEPREMIUM" && %INL% SET SLPKEY=VQB3X-Q3KP8-WJ2H8-R6B6D-7QJB7
%RQR% | findstr /I "PROFESSIONAL" && %INL% SET SLPKEY=YKHFT-KW986-GK4PY-FDWYH-7TP9F
%RQR% | findstr /I "ULTIMATE" && %INL% SET SLPKEY=FJGCP-4DFJD-GJY49-VJBQ7-HYRR2
goto OEMINS
:HCL
%RQR% | findstr /I "STARTER" && %INL% SET SLPKEY=6K6WB-X73TD-KG794-FJYHG-YCJVG
%RQR% | findstr /I "HOMEBASIC" && %INL% SET SLPKEY=89G97-VYHYT-Y6G8H-PJXV6-77GQM
%RQR% | findstr /I "HOMEPREMIUM" && %INL% SET SLPKEY=39QDH-D7MHH-WDMTD-TM2R9-KM7DB
%RQR% | findstr /I "PROFESSIONAL" && %INL% SET SLPKEY=2QTV2-3CMPP-FQBYK-GRD62-D7XMW
%RQR% | findstr /I "ULTIMATE" && %INL% SET SLPKEY=2Y4WT-DHTBF-Q6MMK-KYK6X-VKM6G
goto OEMINS
:HIGRADE
%RQR% | findstr /I "STARTER" && %INL% SET SLPKEY=RDJXR-3M32B-FJT32-QMPGB-GCFF6
%RQR% | findstr /I "HOMEBASIC" && %INL% SET SLPKEY=MB4HF-2Q8V3-W88WR-K7287-2H4CP
%RQR% | findstr /I "HOMEPREMIUM" && %INL% SET SLPKEY=VQB3X-Q3KP8-WJ2H8-R6B6D-7QJB7
%RQR% | findstr /I "PROFESSIONAL" && %INL% SET SLPKEY=YKHFT-KW986-GK4PY-FDWYH-7TP9F
%RQR% | findstr /I "ULTIMATE" && %INL% SET SLPKEY=FJGCP-4DFJD-GJY49-VJBQ7-HYRR2
goto OEMINS
:HYRICAN
%RQR% | findstr /I "STARTER" && %INL% SET SLPKEY=RDJXR-3M32B-FJT32-QMPGB-GCFF6
%RQR% | findstr /I "HOMEBASIC" && %INL% SET SLPKEY=MB4HF-2Q8V3-W88WR-K7287-2H4CP
%RQR% | findstr /I "HOMEPREMIUM" && %INL% SET SLPKEY=VQB3X-Q3KP8-WJ2H8-R6B6D-7QJB7
%RQR% | findstr /I "PROFESSIONAL" && %INL% SET SLPKEY=YKHFT-KW986-GK4PY-FDWYH-7TP9F
%RQR% | findstr /I "ULTIMATE" && %INL% SET SLPKEY=FJGCP-4DFJD-GJY49-VJBQ7-HYRR2
goto OEMINS
:JOOYON
%RQR% | findstr /I "STARTER" && %INL% SET SLPKEY=6K6WB-X73TD-KG794-FJYHG-YCJVG
%RQR% | findstr /I "HOMEBASIC" && %INL% SET SLPKEY=89G97-VYHYT-Y6G8H-PJXV6-77GQM
%RQR% | findstr /I "HOMEPREMIUM" && %INL% SET SLPKEY=2QDBX-9T8HR-2QWT6-HCQXJ-9YQTR
%RQR% | findstr /I "PROFESSIONAL" && %INL% SET SLPKEY=2WCJK-R8B4Y-CWRF2-TRJKB-PV9HW
%RQR% | findstr /I "ULTIMATE" && %INL% SET SLPKEY=2Y4WT-DHTBF-Q6MMK-KYK6X-VKM6G
goto OEMINS
:KRAFTWAY
%RQR% | findstr /I "STARTER" && %INL% SET SLPKEY=RDJXR-3M32B-FJT32-QMPGB-GCFF6
%RQR% | findstr /I "HOMEBASIC" && %INL% SET SLPKEY=MB4HF-2Q8V3-W88WR-K7287-2H4CP
%RQR% | findstr /I "HOMEPREMIUM" && %INL% SET SLPKEY=VQB3X-Q3KP8-WJ2H8-R6B6D-7QJB7
%RQR% | findstr /I "PROFESSIONAL" && %INL% SET SLPKEY=32HPJ-4XRDR-424C8-DYQM9-GM768
%RQR% | findstr /I "ULTIMATE" && %INL% SET SLPKEY=FJGCP-4DFJD-GJY49-VJBQ7-HYRR2
goto OEMINS
:KSYSTEMS
%RQR% | findstr /I "STARTER" && %INL% SET SLPKEY=RDJXR-3M32B-FJT32-QMPGB-GCFF6
%RQR% | findstr /I "HOMEBASIC" && %INL% SET SLPKEY=82P6X-KGH24-FCPXC-XQKC9-74KC8
%RQR% | findstr /I "HOMEPREMIUM" && %INL% SET SLPKEY=VQB3X-Q3KP8-WJ2H8-R6B6D-7QJB7
%RQR% | findstr /I "PROFESSIONAL" && %INL% SET SLPKEY=YKHFT-KW986-GK4PY-FDWYH-7TP9F
%RQR% | findstr /I "ULTIMATE" && %INL% SET SLPKEY=FJGCP-4DFJD-GJY49-VJBQ7-HYRR2
goto OEMINS
:LANIX
%RQR% | findstr /I "STARTER" && %INL% SET SLPKEY=RDJXR-3M32B-FJT32-QMPGB-GCFF6
%RQR% | findstr /I "HOMEBASIC" && %INL% SET SLPKEY=MB4HF-2Q8V3-W88WR-K7287-2H4CP
%RQR% | findstr /I "HOMEPREMIUM" && %INL% SET SLPKEY=VQB3X-Q3KP8-WJ2H8-R6B6D-7QJB7
%RQR% | findstr /I "PROFESSIONAL" && %INL% SET SLPKEY=YKHFT-KW986-GK4PY-FDWYH-7TP9F
%RQR% | findstr /I "ULTIMATE" && %INL% SET SLPKEY=FJGCP-4DFJD-GJY49-VJBQ7-HYRR2
goto OEMINS
:MEDION
%RQR% | findstr /I "STARTER" && %INL% SET SLPKEY=6K6WB-X73TD-KG794-FJYHG-YCJVG
%RQR% | findstr /I "HOMEBASIC" && %INL% SET SLPKEY=89G97-VYHYT-Y6G8H-PJXV6-77GQM
%RQR% | findstr /I "HOMEPREMIUM" && %INL% SET SLPKEY=2P2P9-CM3F8-FTV6P-PC7CX-8TFF7
%RQR% | findstr /I "PROFESSIONAL" && %INL% SET SLPKEY=2WCJK-R8B4Y-CWRF2-TRJKB-PV9HW
%RQR% | findstr /I "ULTIMATE" && %INL% SET SLPKEY=2Y4WT-DHTBF-Q6MMK-KYK6X-VKM6G
goto OEMINS
:NEC
%RQR% | findstr /I "STARTER" && %INL% SET SLPKEY=6K6WB-X73TD-KG794-FJYHG-YCJVG
%RQR% | findstr /I "HOMEBASIC" && %INL% SET SLPKEY=89G97-VYHYT-Y6G8H-PJXV6-77GQM
%RQR% | findstr /I "HOMEPREMIUM" && %INL% SET SLPKEY=2QDBX-9T8HR-2QWT6-HCQXJ-9YQTR
%RQR% | findstr /I "PROFESSIONAL" && %INL% SET SLPKEY=2WCJK-R8B4Y-CWRF2-TRJKB-PV9HW
%RQR% | findstr /I "ULTIMATE" && %INL% SET SLPKEY=2Y4WT-DHTBF-Q6MMK-KYK6X-VKM6G
goto OEMINS
:NOKIA
%RQR% | findstr /I "STARTER" && %INL% SET SLPKEY=2XGHP-9TQK2-8CF28-BM2P2-8FRX8
%RQR% | findstr /I "HOMEBASIC" && %INL% SET SLPKEY=89G97-VYHYT-Y6G8H-PJXV6-77GQM
%RQR% | findstr /I "HOMEPREMIUM" && %INL% SET SLPKEY=2QDBX-9T8HR-2QWT6-HCQXJ-9YQTR
%RQR% | findstr /I "PROFESSIONAL" && %INL% SET SLPKEY=2WCJK-R8B4Y-CWRF2-TRJKB-PV9HW
%RQR% | findstr /I "ULTIMATE" && %INL% SET SLPKEY=2Y4WT-DHTBF-Q6MMK-KYK6X-VKM6G
goto OEMINS
:QUANMAX
%RQR% | findstr /I "STARTER" && %INL% SET SLPKEY=6K6WB-X73TD-KG794-FJYHG-YCJVG
%RQR% | findstr /I "HOMEBASIC" && %INL% SET SLPKEY=89G97-VYHYT-Y6G8H-PJXV6-77GQM
%RQR% | findstr /I "HOMEPREMIUM" && %INL% SET SLPKEY=2QDBX-9T8HR-2QWT6-HCQXJ-9YQTR
%RQR% | findstr /I "PROFESSIONAL" && %INL% SET SLPKEY=2WCJK-R8B4Y-CWRF2-TRJKB-PV9HW
%RQR% | findstr /I "ULTIMATE" && %INL% SET SLPKEY=2Y4WT-DHTBF-Q6MMK-KYK6X-VKM6G
goto OEMINS
:SEMP
%RQR% | findstr /I "STARTER" && %INL% SET SLPKEY=RDJXR-3M32B-FJT32-QMPGB-GCFF6
%RQR% | findstr /I "HOMEBASIC" && %INL% SET SLPKEY=MB4HF-2Q8V3-W88WR-K7287-2H4CP
%RQR% | findstr /I "HOMEPREMIUM" && %INL% SET SLPKEY=VQB3X-Q3KP8-WJ2H8-R6B6D-7QJB7
%RQR% | findstr /I "PROFESSIONAL" && %INL% SET SLPKEY=YKHFT-KW986-GK4PY-FDWYH-7TP9F
%RQR% | findstr /I "ULTIMATE" && %INL% SET SLPKEY=FJGCP-4DFJD-GJY49-VJBQ7-HYRR2
goto OEMINS
:SYNNEX
%RQR% | findstr /I "STARTER" && %INL% SET SLPKEY=RDJXR-3M32B-FJT32-QMPGB-GCFF6
%RQR% | findstr /I "HOMEBASIC" && %INL% SET SLPKEY=MB4HF-2Q8V3-W88WR-K7287-2H4CP
%RQR% | findstr /I "HOMEPREMIUM" && %INL% SET SLPKEY=VQB3X-Q3KP8-WJ2H8-R6B6D-7QJB7
%RQR% | findstr /I "PROFESSIONAL" && %INL% SET SLPKEY=YKHFT-KW986-GK4PY-FDWYH-7TP9F
%RQR% | findstr /I "ULTIMATE" && %INL% SET SLPKEY=FJGCP-4DFJD-GJY49-VJBQ7-HYRR2
goto OEMINS
:SYSTEMAX
%RQR% | findstr /I "STARTER" && %INL% SET SLPKEY=RDJXR-3M32B-FJT32-QMPGB-GCFF6
%RQR% | findstr /I "HOMEBASIC" && %INL% SET SLPKEY=MB4HF-2Q8V3-W88WR-K7287-2H4CP
%RQR% | findstr /I "HOMEPREMIUM" && %INL% SET SLPKEY=VQB3X-Q3KP8-WJ2H8-R6B6D-7QJB7
%RQR% | findstr /I "PROFESSIONAL" && %INL% SET SLPKEY=YKHFT-KW986-GK4PY-FDWYH-7TP9F
%RQR% | findstr /I "ULTIMATE" && %INL% SET SLPKEY=FJGCP-4DFJD-GJY49-VJBQ7-HYRR2
goto OEMINS
:TRIGEM
%RQR% | findstr /I "STARTER" && %INL% SET SLPKEY=6K6WB-X73TD-KG794-FJYHG-YCJVG
%RQR% | findstr /I "HOMEBASIC" && %INL% SET SLPKEY=89G97-VYHYT-Y6G8H-PJXV6-77GQM
%RQR% | findstr /I "HOMEPREMIUM" && %INL% SET SLPKEY=2QDBX-9T8HR-2QWT6-HCQXJ-9YQTR
%RQR% | findstr /I "PROFESSIONAL" && %INL% SET SLPKEY=2WCJK-R8B4Y-CWRF2-TRJKB-PV9HW
%RQR% | findstr /I "ULTIMATE" && %INL% SET SLPKEY=2Y4WT-DHTBF-Q6MMK-KYK6X-VKM6G
goto OEMINS
:VILIV
%RQR% | findstr /I "STARTER" && %INL% SET SLPKEY=7W842-2HCPJ-BC3MJ-B79K6-TD2HQ
%RQR% | findstr /I "HOMEBASIC" && %INL% SET SLPKEY=89G97-VYHYT-Y6G8H-PJXV6-77GQM
%RQR% | findstr /I "HOMEPREMIUM" && %INL% SET SLPKEY=2QDBX-9T8HR-2QWT6-HCQXJ-9YQTR
%RQR% | findstr /I "PROFESSIONAL" && %INL% SET SLPKEY=2WCJK-R8B4Y-CWRF2-TRJKB-PV9HW
%RQR% | findstr /I "ULTIMATE" && %INL% SET SLPKEY=2Y4WT-DHTBF-Q6MMK-KYK6X-VKM6G
goto OEMINS
:VSONIC
%RQR% | findstr /I "STARTER" && %INL% SET SLPKEY=RDJXR-3M32B-FJT32-QMPGB-GCFF6
%RQR% | findstr /I "HOMEBASIC" && %INL% SET SLPKEY=MB4HF-2Q8V3-W88WR-K7287-2H4CP
%RQR% | findstr /I "HOMEPREMIUM" && %INL% SET SLPKEY=C23T3-9F2T2-FPWBM-XYMW2-272J9
%RQR% | findstr /I "PROFESSIONAL" && %INL% SET SLPKEY=YKHFT-KW986-GK4PY-FDWYH-7TP9F
%RQR% | findstr /I "ULTIMATE" && %INL% SET SLPKEY=FJGCP-4DFJD-GJY49-VJBQ7-HYRR2
goto OEMINS
:WORTMANN
%RQR% | findstr /I "STARTER" && %INL% SET SLPKEY=6K6WB-X73TD-KG794-FJYHG-YCJVG
%RQR% | findstr /I "HOMEBASIC" && %INL% SET SLPKEY=89G97-VYHYT-Y6G8H-PJXV6-77GQM
%RQR% | findstr /I "HOMEPREMIUM" && %INL% SET SLPKEY=2QDBX-9T8HR-2QWT6-HCQXJ-9YQTR
%RQR% | findstr /I "PROFESSIONAL" && %INL% SET SLPKEY=6JKVQ-WJTWW-JVPRB-77TGD-2DV7M
%RQR% | findstr /I "ULTIMATE" && %INL% SET SLPKEY=2Y4WT-DHTBF-Q6MMK-KYK6X-VKM6G
goto OEMINS
::------------------------------------------------------------------------------::
:DEFAULT
REGEDIT /S %Systemroot%\setup\OEMFILES\DEFAULT.reg >nul
DEL /F /Q %Systemroot%\system32\oobe\info\Backgrounds\BACKGROUNDDEFAULT.JPG >nul
RD /Q /S %Systemroot%\system32\oobe\info >nul
DEL /F /Q %Systemroot%\Resources\Themes\Brand.theme >nul
DEL /F /Q %Systemroot%\Web\Wallpaper\Wallpaper.jpg >nul
MD %Systemroot%\system32\oem
copy /Y %Systemroot%\setup\OEMFILES\XRM-MS\*.xrm-ms %Systemroot%\system32\oem /y >nul
reg QUERY "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v "EditionID" > %TEMP%\Edition.txt
findstr /I "Starter" "%TEMP%\Edition.txt" && cscript %Systemroot%\system32\slmgr.vbs -ipk RDJXR-3M32B-FJT32-QMPGB-GCFF6
findstr /I "homeBasic" "%TEMP%\Edition.txt" && cscript %Systemroot%\system32\slmgr.vbs -ipk MB4HF-2Q8V3-W88WR-K7287-2H4CP
findstr /I "HomePremium" "%TEMP%\Edition.txt" && cscript %Systemroot%\system32\slmgr.vbs -ipk VQB3X-Q3KP8-WJ2H8-R6B6D-7QJB7
findstr /I "Professional" "%TEMP%\Edition.txt" && cscript %Systemroot%\system32\slmgr.vbs -ipk YKHFT-KW986-GK4PY-FDWYH-7TP9F
findstr /I "Ultimate" "%TEMP%\Edition.txt" && cscript %Systemroot%\system32\slmgr.vbs -ipk FJGCP-4DFJD-GJY49-VJBQ7-HYRR2
cscript //nologo %Systemroot%\system32\slmgr.vbs -ilc %windir\system32\oem\Acer.XRM-MS >nul
cscript //nologo %Systemroot%\system32\slmgr.vbs -ilc %windir\system32\oem\Asus.XRM-MS >nul
cscript //nologo %Systemroot%\system32\slmgr.vbs -ilc %windir\system32\oem\Lenovo.XRM-MS >nul
cscript //nologo %Systemroot%\system32\slmgr.vbs -ilc %windir\system32\oem\Dell.XRM-MS >nul
cscript //nologo %Systemroot%\system32\slmgr.vbs -ilc %windir\system32\oem\HP.XRM-MS >nul
cscript //nologo %Systemroot%\system32\slmgr.vbs -ilc %windir\system32\oem\HPPro.XRM-MS >nul
cscript //nologo %Systemroot%\system32\slmgr.vbs -ilc %windir\system32\oem\Sony.XRM-MS >nul
cscript //nologo %Systemroot%\system32\slmgr.vbs -ilc %windir\system32\oem\MSI.XRM-MS >nul
cscript //nologo %Systemroot%\system32\slmgr.vbs -ilc %windir\system32\oem\TOSA.XRM-MS >nul
cscript //nologo %Systemroot%\system32\slmgr.vbs -ilc %windir\system32\oem\TOSC.XRM-MS >nul
cscript //nologo %Systemroot%\system32\slmgr.vbs -ilc %windir\system32\oem\TOSHIBA.XRM-MS >nul
cscript //nologo %Systemroot%\system32\slmgr.vbs -ilc %windir\system32\oem\TOSI.XRM-MS >nul
cscript //nologo %Systemroot%\system32\slmgr.vbs -ilc %windir\system32\oem\TOSQ.XRM-MS >nul
cscript //nologo %Systemroot%\system32\slmgr.vbs -ilc %windir\system32\oem\Samsung.XRM-MS >nul
cscript //nologo %Systemroot%\system32\slmgr.vbs -ilc %windir\system32\oem\Founder.XRM-MS >nul
cscript //nologo %Systemroot%\system32\slmgr.vbs -ilc %windir\system32\oem\FSC.XRM-MS >nul
cscript //nologo %Systemroot%\system32\slmgr.vbs -ilc %windir\system32\oem\Fujitsu.XRM-MS >nul
cscript //nologo %Systemroot%\system32\slmgr.vbs -xpr | findstr /I "计算机已永久激活" && GOTO ENDALL
GOTO DEFAULT_A
:DEFAULT_A
cscript //nologo %Systemroot%\system32\slmgr.vbs -ilc %windir\system32\oem\Gigabyte.XRM-MS >nul
cscript //nologo %Systemroot%\system32\slmgr.vbs -ilc %windir\system32\oem\GWall.xrm-ms >nul
cscript //nologo %Systemroot%\system32\slmgr.vbs -ilc %windir\system32\oem\Haier.XRM-MS >nul
cscript //nologo %Systemroot%\system32\slmgr.vbs -ilc %windir\system32\oem\Hasee.XRM-MS >nul
cscript //nologo %Systemroot%\system32\slmgr.vbs -ilc %windir\system32\oem\ECS.xrm-ms >nul
cscript //nologo %Systemroot%\system32\slmgr.vbs -ilc %windir\system32\oem\BenQ.XRM-MS >nul
cscript //nologo %Systemroot%\system32\slmgr.vbs -ilc %windir\system32\oem\HEDY.xrm-ms >nul
cscript //nologo %Systemroot%\system32\slmgr.vbs -ilc %windir\system32\oem\LG.XRM-MS >nul
cscript //nologo %Systemroot%\system32\slmgr.vbs -ilc %windir\system32\oem\Tongfang.XRM-MS >nul
cscript //nologo %Systemroot%\system32\slmgr.vbs -ilc %windir\system32\oem\Advent.XRM-MS >nul
cscript //nologo %Systemroot%\system32\slmgr.vbs -ilc %windir\system32\oem\Alienware.XRM-MS >nul
cscript //nologo %Systemroot%\system32\slmgr.vbs -xpr | findstr /I "计算机已永久激活" && GOTO ENDALL
GOTO DEFAULT_B
:DEFAULT_B
cscript //nologo %Systemroot%\system32\slmgr.vbs -ilc %windir\system32\oem\Aquarius.xrm-ms >nul
cscript //nologo %Systemroot%\system32\slmgr.vbs -ilc %windir\system32\oem\Casper.XRM-MS >nul
cscript //nologo %Systemroot%\system32\slmgr.vbs -ilc %windir\system32\oem\Dealin.xrm-ms >nul
cscript //nologo %Systemroot%\system32\slmgr.vbs -ilc %windir\system32\oem\Exper.xrm-ms >nul
cscript //nologo %Systemroot%\system32\slmgr.vbs -ilc %windir\system32\oem\Hannspree.xrm-ms >nul
cscript //nologo %Systemroot%\system32\slmgr.vbs -ilc %windir\system32\oem\HCL.XRM-MS >nul
cscript //nologo %Systemroot%\system32\slmgr.vbs -ilc %windir\system32\oem\Higrade.XRM-MS >nul
cscript //nologo %Systemroot%\system32\slmgr.vbs -ilc %windir\system32\oem\Hyrican.XRM-MS >nul
cscript //nologo %Systemroot%\system32\slmgr.vbs -ilc %windir\system32\oem\Jooyon.XRM-MS >nul
cscript //nologo %Systemroot%\system32\slmgr.vbs -ilc %windir\system32\oem\Kraftway.xrm-ms >nul
cscript //nologo %Systemroot%\system32\slmgr.vbs -ilc %windir\system32\oem\KSystems.xrm-ms >nul
cscript //nologo %Systemroot%\system32\slmgr.vbs -ilc %windir\system32\oem\Lanix.XRM-MS >nul
cscript //nologo %Systemroot%\system32\slmgr.vbs -xpr | findstr /I "计算机已永久激活" && GOTO ENDALL
GOTO DEFAULT_C
:DEFAULT_C
cscript //nologo %Systemroot%\system32\slmgr.vbs -ilc %windir\system32\oem\Medion.XRM-MS >nul
cscript //nologo %Systemroot%\system32\slmgr.vbs -ilc %windir\system32\oem\NEC.XRM-MS >nul
cscript //nologo %Systemroot%\system32\slmgr.vbs -ilc %windir\system32\oem\Nokia.XRM-MS >nul
cscript //nologo %Systemroot%\system32\slmgr.vbs -ilc %windir\system32\oem\Olidata.xrm-ms >nul
cscript //nologo %Systemroot%\system32\slmgr.vbs -ilc %windir\system32\oem\Quanmax.XRM-MS >nul
cscript //nologo %Systemroot%\system32\slmgr.vbs -ilc %windir\system32\oem\Semp.XRM-MS >nul
cscript //nologo %Systemroot%\system32\slmgr.vbs -ilc %windir\system32\oem\Synnex.XRM-MS >nul
cscript //nologo %Systemroot%\system32\slmgr.vbs -ilc %windir\system32\oem\Systemax.XRM-MS >nul
cscript //nologo %Systemroot%\system32\slmgr.vbs -ilc %windir\system32\oem\Trigem.XRM-MS >nul
cscript //nologo %Systemroot%\system32\slmgr.vbs -ilc %windir\system32\oem\Viliv.xrm-ms >nul
cscript //nologo %Systemroot%\system32\slmgr.vbs -ilc %windir\system32\oem\VSonic.xrm-ms >nul
cscript //nologo %Systemroot%\system32\slmgr.vbs -ilc %windir\system32\oem\Wortmann.xrm-ms >nul
GOTO ENDALL
::-------------------------------------------------::
:ACERINS
reg QUERY "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v "EditionID" > %TEMP%\Edition.txt
findstr /i "Starter" "%TEMP%\Edition.txt" && cscript %windir%\system32\slmgr.vbs -ipk RDJXR-3M32B-FJT32-QMPGB-GCFF6
findstr /i "homeBasic" "%TEMP%\Edition.txt" && cscript %windir%\system32\slmgr.vbs -ipk MB4HF-2Q8V3-W88WR-K7287-2H4CP
findstr /i "HomePremium" "%TEMP%\Edition.txt" && cscript %windir%\system32\slmgr.vbs -ipk VQB3X-Q3KP8-WJ2H8-R6B6D-7QJB7
findstr /i "Professional" "%TEMP%\Edition.txt" && cscript %windir%\system32\slmgr.vbs -ipk YKHFT-KW986-GK4PY-FDWYH-7TP9F
findstr /i "Ultimate" "%TEMP%\Edition.txt" && cscript %windir%\system32\slmgr.vbs -ipk FJGCP-4DFJD-GJY49-VJBQ7-HYRR2
cscript //nologo %Systemroot%\system32\slmgr.vbs -ilc %Systemroot%\Setup\OEMFILES\ACER\ACER.xrm-ms >nul

findstr /i "Starter" "%TEMP%\Edition.txt" && RD /Q /S %Systemroot%\Setup\OEMFILES\%BRAND%\info\Backgrounds >nul
findstr /i "homeBasic" "%TEMP%\Edition.txt" && RD /Q /S %Systemroot%\Setup\OEMFILES\%BRAND%\info\Backgrounds >nul

MD %Systemroot%\system32\oem >nul
MD %Systemroot%\system32\oobe\info >nul
MD %Systemroot%\system32\oobe\info\Backgrounds >nul
IF EXIST "%Systemroot%\Setup\OEMFILES\%BRAND%\info\Backgrounds\*.*" COPY /Y %Systemroot%\Setup\OEMFILES\%BRAND%\info\Backgrounds\*.* %Systemroot%\system32\oobe\info\Backgrounds >nul
RD /Q /S %Systemroot%\Setup\OEMFILES\%BRAND%\info\Backgrounds >nul
IF EXIST "%Systemroot%\Setup\OEMFILES\%BRAND%\info\*.*" COPY /Y %Systemroot%\Setup\OEMFILES\%BRAND%\info\*.* %Systemroot%\system32\oobe\info >nul
IF EXIST "%Systemroot%\Setup\OEMFILES\%BRAND%\*.theme" COPY /Y %Systemroot%\Setup\OEMFILES\%BRAND%\*.theme %Systemroot%\Resources\Themes >nul
IF EXIST "%Systemroot%\Setup\OEMFILES\%BRAND%\wallpaper.jpg" COPY /Y %Systemroot%\Setup\OEMFILES\%BRAND%\wallpaper.jpg %Systemroot%\Web\Wallpaper >nul
IF EXIST "%Systemroot%\Setup\OEMFILES\%BRAND%\wallpaper" XCOPY /E /Y %Systemroot%\Setup\OEMFILES\%BRAND%\wallpaper %Systemroot%\Web\Wallpaper >nul
IF EXIST "%Systemroot%\Setup\OEMFILES\%BRAND%\%BRAND%.reg" START /W REGEDIT /S %Systemroot%\Setup\OEMFILES\%BRAND%\%BRAND%.reg >nul
IF EXIST "%Systemroot%\setup\OEMFILES\%BRAND%\*.xrm-ms" COPY %Systemroot%\setup\OEMFILES\%BRAND%\*.xrm-ms %Systemroot%\system32\oem >nul
cscript //nologo %Systemroot%\system32\slmgr.vbs -xpr | findstr /I "计算机已永久激活" && GOTO ENDALL
GOTO DEFAULT
::-------------------------------------------------::
:HPINS
reg QUERY "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v "EditionID" > %TEMP%\Edition.txt
findstr /i "Starter" "%TEMP%\Edition.txt" && cscript %windir%\system32\slmgr.vbs -ipk RH98C-M9PW4-6DHR7-X99PJ-3FGDB
findstr /i "homeBasic" "%TEMP%\Edition.txt" && cscript %windir%\system32\slmgr.vbs -ipk DX8R9-BVCGB-PPKRR-8J7T4-TJHTH
findstr /i "HomePremium" "%TEMP%\Edition.txt" && cscript %windir%\system32\slmgr.vbs -ipk 4FG99-BC3HD-73CQT-WMF7J-3Q6C9
findstr /i "Professional" "%TEMP%\Edition.txt" && cscript %windir%\system32\slmgr.vbs -ipk 74T2M-DKDBC-788W3-H689G-6P6GT
findstr /i "Ultimate" "%TEMP%\Edition.txt" && cscript %windir%\system32\slmgr.vbs -ipk MHFPT-8C8M2-V9488-FGM44-2C9T3
cscript //nologo %Systemroot%\system32\slmgr.vbs -ilc %Systemroot%\Setup\OEMFILES\HP\HPPRO.xrm-ms >nul
cscript //nologo %Systemroot%\system32\slmgr.vbs -ilc %Systemroot%\Setup\OEMFILES\HP\HP.xrm-ms >nul

findstr /i "Starter" "%TEMP%\Edition.txt" && RD /Q /S %Systemroot%\Setup\OEMFILES\%BRAND%\info\Backgrounds >nul
findstr /i "homeBasic" "%TEMP%\Edition.txt" && RD /Q /S %Systemroot%\Setup\OEMFILES\%BRAND%\info\Backgrounds >nul

MD %Systemroot%\system32\oem >nul
MD %Systemroot%\system32\oobe\info >nul
MD %Systemroot%\system32\oobe\info\Backgrounds >nul
IF EXIST "%Systemroot%\Setup\OEMFILES\%BRAND%\info\Backgrounds\*.*" COPY /Y %Systemroot%\Setup\OEMFILES\%BRAND%\info\Backgrounds\*.* %Systemroot%\system32\oobe\info\Backgrounds >nul
RD /Q /S %Systemroot%\Setup\OEMFILES\%BRAND%\info\Backgrounds >nul
IF EXIST "%Systemroot%\Setup\OEMFILES\%BRAND%\info\*.*" COPY /Y %Systemroot%\Setup\OEMFILES\%BRAND%\info\*.* %Systemroot%\system32\oobe\info >nul
IF EXIST "%Systemroot%\Setup\OEMFILES\%BRAND%\*.theme" COPY /Y %Systemroot%\Setup\OEMFILES\%BRAND%\*.theme %Systemroot%\Resources\Themes >nul
IF EXIST "%Systemroot%\Setup\OEMFILES\%BRAND%\wallpaper.jpg" COPY /Y %Systemroot%\Setup\OEMFILES\%BRAND%\wallpaper.jpg %Systemroot%\Web\Wallpaper >nul
IF EXIST "%Systemroot%\Setup\OEMFILES\%BRAND%\wallpaper" XCOPY /E /Y %Systemroot%\Setup\OEMFILES\%BRAND%\wallpaper %Systemroot%\Web\Wallpaper >nul
IF EXIST "%Systemroot%\Setup\OEMFILES\%BRAND%\%BRAND%.reg" START /W REGEDIT /S %Systemroot%\Setup\OEMFILES\%BRAND%\%BRAND%.reg >nul
IF EXIST "%Systemroot%\setup\OEMFILES\%BRAND%\*.xrm-ms" COPY /Y %Systemroot%\setup\OEMFILES\%BRAND%\*.xrm-ms %Systemroot%\system32\oem >nul
cscript //nologo %Systemroot%\system32\slmgr.vbs -xpr | findstr /I "计算机已永久激活" && GOTO ENDALL
GOTO DEFAULT
::-------------------------------------------------::
:LENOVOINS
REG QUERY "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v "EditionID" > %TEMP%\Edition.txt
findstr /I "Starter" "%TEMP%\Edition.txt" && cscript %windir%\system32\slmgr.vbs -ipk 273P4-GQ8V6-97YYM-9YTHF-DC2VP
findstr /I "homeBasic" "%TEMP%\Edition.txt" && cscript %windir%\system32\slmgr.vbs -ipk 22MFQ-HDH7V-RBV79-QMVK9-PTMXQ
findstr /I "HomePremium" "%TEMP%\Edition.txt" && cscript %windir%\system32\slmgr.vbs -ipk 27GBM-Y4QQC-JKHXW-D9W83-FJQKD
findstr /I "Professional" "%TEMP%\Edition.txt" && cscript %windir%\system32\slmgr.vbs -ipk 237XB-GDJ7B-MV8MH-98QJM-24367
findstr /I "Ultimate" "%TEMP%\Edition.txt" && cscript %windir%\system32\slmgr.vbs -ipk 6K2KY-BFH24-PJW6W-9GK29-TMPWP
cscript //nologo %Systemroot%\system32\slmgr.vbs -ilc %Systemroot%\Setup\OEMFILES\LENOVO\LENOVO.xrm-ms >nul

findstr /i "Starter" "%TEMP%\Edition.txt" && RD /Q /S %Systemroot%\Setup\OEMFILES\%BRAND%\info\Backgrounds >nul
findstr /i "homeBasic" "%TEMP%\Edition.txt" && RD /Q /S %Systemroot%\Setup\OEMFILES\%BRAND%\info\Backgrounds >nul

IF EXIST "C:\SWTOOLS" RD /S /Q C:\SWTOOLS >nul
IF EXIST "%Systemroot%\Setup\OEMFILES\%BRAND%\Think.exe" %Systemroot%\Setup\OEMFILES\%BRAND%\Think.exe /S >nul
IF EXIST "C:\SWTOOLS" RD /S /Q C:\SWTOOLS >nul
ATTRIB -R -S -H -A "%windir%\system32\Think Screensaver.scr" >nul
DEL /Q /F "%windir%\system32\Think Screensaver.scr" >nul
MD %Systemroot%\system32\oem >nul
MD %Systemroot%\system32\oobe\info >nul
MD %Systemroot%\system32\oobe\info\Backgrounds >nul
IF EXIST "%Systemroot%\Setup\OEMFILES\%BRAND%\info\Backgrounds\*.*" COPY /Y %Systemroot%\Setup\OEMFILES\%BRAND%\info\Backgrounds\*.* %Systemroot%\system32\oobe\info\Backgrounds >nul
RD /Q /S %Systemroot%\Setup\OEMFILES\%BRAND%\info\Backgrounds >nul
IF EXIST "%Systemroot%\Setup\OEMFILES\%BRAND%\info\*.*" COPY /Y %Systemroot%\Setup\OEMFILES\%BRAND%\info\*.* %Systemroot%\system32\oobe\info >nul
IF EXIST "%Systemroot%\Setup\OEMFILES\%BRAND%\*.theme" COPY /Y %Systemroot%\Setup\OEMFILES\%BRAND%\*.theme %Systemroot%\Resources\Themes >nul
IF EXIST "%Systemroot%\Setup\OEMFILES\%BRAND%\wallpaper.jpg" COPY /Y %Systemroot%\Setup\OEMFILES\%BRAND%\wallpaper.jpg %Systemroot%\Web\Wallpaper >nul
IF EXIST "%Systemroot%\Setup\OEMFILES\%BRAND%\wallpaper" XCOPY /E /Y %Systemroot%\Setup\OEMFILES\%BRAND%\wallpaper %Systemroot%\Web\Wallpaper >nul
IF EXIST "%Systemroot%\Setup\OEMFILES\%BRAND%\%BRAND%.reg" START /W REGEDIT /S %Systemroot%\Setup\OEMFILES\%BRAND%\%BRAND%.reg >nul
IF EXIST "%Systemroot%\setup\OEMFILES\%BRAND%\*.xrm-ms" COPY /Y %Systemroot%\setup\OEMFILES\%BRAND%\*.xrm-ms %Systemroot%\system32\oem >nul
cscript //nologo %Systemroot%\system32\slmgr.vbs -xpr | findstr /I "计算机已永久激活" && GOTO ENDALL
GOTO DEFAULT
::-------------------------------------------------::
:FSCINS
reg QUERY "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v "EditionID" > %TEMP%\Edition.txt
findstr /i "Starter" "%TEMP%\Edition.txt" && cscript %windir%\system32\slmgr.vbs -ipk PMXH9-M23P9-QJJMB-2FWRC-7CDKP
findstr /i "homeBasic" "%TEMP%\Edition.txt" && cscript %windir%\system32\slmgr.vbs -ipk 8W3JQ-BP2HY-F47QX-6CQ94-2BKQB
findstr /i "HomePremium" "%TEMP%\Edition.txt" && cscript %windir%\system32\slmgr.vbs -ipk C6MHH-TRRPT-74TDC-FHRMV-XB88W
findstr /i "Professional" "%TEMP%\Edition.txt" && cscript %windir%\system32\slmgr.vbs -ipk PT9YK-BC2J9-WWYF9-R9DCR-QB9CK
findstr /i "Ultimate" "%TEMP%\Edition.txt" && cscript %windir%\system32\slmgr.vbs -ipk 9CW99-79BBF-D4M3X-9BK9M-4RPH9
cscript //nologo %Systemroot%\system32\slmgr.vbs -ilc %Systemroot%\Setup\OEMFILES\%BRAND%\Fujitsu.xrm-ms >nul
cscript //nologo %Systemroot%\system32\slmgr.vbs -ilc %Systemroot%\Setup\OEMFILES\%BRAND%\%BRAND%.xrm-ms >nul

findstr /i "Starter" "%TEMP%\Edition.txt" && RD /Q /S %Systemroot%\Setup\OEMFILES\%BRAND%\info\Backgrounds >nul
findstr /i "homeBasic" "%TEMP%\Edition.txt" && RD /Q /S %Systemroot%\Setup\OEMFILES\%BRAND%\info\Backgrounds >nul

MD %Systemroot%\system32\oem >nul
MD %Systemroot%\system32\oobe\info >nul
MD %Systemroot%\system32\oobe\info\Backgrounds >nul
IF EXIST "%Systemroot%\Setup\OEMFILES\%BRAND%\info\Backgrounds\*.*" COPY /Y %Systemroot%\Setup\OEMFILES\%BRAND%\info\Backgrounds\*.* %Systemroot%\system32\oobe\info\Backgrounds >nul
RD /Q /S %Systemroot%\Setup\OEMFILES\%BRAND%\info\Backgrounds >nul
IF EXIST "%Systemroot%\Setup\OEMFILES\%BRAND%\info\*.*" COPY /Y %Systemroot%\Setup\OEMFILES\%BRAND%\info\*.* %Systemroot%\system32\oobe\info >nul
IF EXIST "%Systemroot%\Setup\OEMFILES\%BRAND%\*.theme" COPY /Y %Systemroot%\Setup\OEMFILES\%BRAND%\*.theme %Systemroot%\Resources\Themes >nul
IF EXIST "%Systemroot%\Setup\OEMFILES\%BRAND%\wallpaper.jpg" COPY /Y %Systemroot%\Setup\OEMFILES\%BRAND%\wallpaper.jpg %Systemroot%\Web\Wallpaper >nul
IF EXIST "%Systemroot%\Setup\OEMFILES\%BRAND%\wallpaper" XCOPY /E /Y %Systemroot%\Setup\OEMFILES\%BRAND%\wallpaper %Systemroot%\Web\Wallpaper >nul
IF EXIST "%Systemroot%\Setup\OEMFILES\%BRAND%\%BRAND%.reg" START /W REGEDIT /S %Systemroot%\Setup\OEMFILES\%BRAND%\%BRAND%.reg >nul
IF EXIST "%Systemroot%\setup\OEMFILES\%BRAND%\*.xrm-ms" COPY /Y %Systemroot%\setup\OEMFILES\%BRAND%\*.xrm-ms %Systemroot%\system32\oem >nul
cscript //nologo %Systemroot%\system32\slmgr.vbs -xpr | findstr /I "计算机已永久激活" && GOTO ENDALL
GOTO DEFAULT
::-------------------------------------------------::
:TOSHIBAINS
reg QUERY "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v "EditionID" > %TEMP%\Edition.txt
findstr /i "Starter" "%TEMP%\Edition.txt" && cscript %windir%\system32\slmgr.vbs -ipk TGBKB-9KBGJ-3Y3J6-K8M2F-J2HJQ
findstr /i "homeBasic" "%TEMP%\Edition.txt" && cscript %windir%\system32\slmgr.vbs -ipk 9H4FH-VD69Y-TGBD2-4PM4K-DRMMH
findstr /i "HomePremium" "%TEMP%\Edition.txt" && cscript %windir%\system32\slmgr.vbs -ipk 6B88K-KCCWY-4F8HK-M4P73-W8DQG
findstr /i "Professional" "%TEMP%\Edition.txt" && cscript %windir%\system32\slmgr.vbs -ipk 2V8P2-QKJWM-4THM3-74PDB-4P2KH
findstr /i "Ultimate" "%TEMP%\Edition.txt" && cscript %windir%\system32\slmgr.vbs -ipk 2Y4WT-DHTBF-Q6MMK-KYK6X-VKM6G
cscript //nologo %Systemroot%\system32\slmgr.vbs -ilc %Systemroot%\Setup\OEMFILES\%BRAND%\TOSHIBA.xrm-ms >nul
cscript //nologo %Systemroot%\system32\slmgr.vbs -ilc %Systemroot%\Setup\OEMFILES\%BRAND%\TOSA.xrm-ms >nul
cscript //nologo %Systemroot%\system32\slmgr.vbs -ilc %Systemroot%\Setup\OEMFILES\%BRAND%\TOSC.xrm-ms >nul
cscript //nologo %Systemroot%\system32\slmgr.vbs -ilc %Systemroot%\Setup\OEMFILES\%BRAND%\TOSI.xrm-ms >nul
cscript //nologo %Systemroot%\system32\slmgr.vbs -ilc %Systemroot%\Setup\OEMFILES\%BRAND%\TOSQ.xrm-ms >nul

findstr /i "Starter" "%TEMP%\Edition.txt" && RD /Q /S %Systemroot%\Setup\OEMFILES\%BRAND%\info\Backgrounds >nul
findstr /i "homeBasic" "%TEMP%\Edition.txt" && RD /Q /S %Systemroot%\Setup\OEMFILES\%BRAND%\info\Backgrounds >nul

MD %Systemroot%\system32\oem >nul
MD %Systemroot%\system32\oobe\info >nul
MD %Systemroot%\system32\oobe\info\Backgrounds >nul
IF EXIST "%Systemroot%\Setup\OEMFILES\%BRAND%\info\Backgrounds\*.*" COPY /Y %Systemroot%\Setup\OEMFILES\%BRAND%\info\Backgrounds\*.* %Systemroot%\system32\oobe\info\Backgrounds >nul
RD /Q /S %Systemroot%\Setup\OEMFILES\%BRAND%\info\Backgrounds >nul
IF EXIST "%Systemroot%\Setup\OEMFILES\%BRAND%\info\*.*" COPY /Y %Systemroot%\Setup\OEMFILES\%BRAND%\info\*.* %Systemroot%\system32\oobe\info >nul
IF EXIST "%Systemroot%\Setup\OEMFILES\%BRAND%\*.theme" COPY /Y %Systemroot%\Setup\OEMFILES\%BRAND%\*.theme %Systemroot%\Resources\Themes >nul
IF EXIST "%Systemroot%\Setup\OEMFILES\%BRAND%\wallpaper.jpg" COPY /Y %Systemroot%\Setup\OEMFILES\%BRAND%\wallpaper.jpg %Systemroot%\Web\Wallpaper >nul
IF EXIST "%Systemroot%\Setup\OEMFILES\%BRAND%\wallpaper" XCOPY /E /Y %Systemroot%\Setup\OEMFILES\%BRAND%\wallpaper %Systemroot%\Web\Wallpaper >nul
IF EXIST "%Systemroot%\Setup\OEMFILES\%BRAND%\%BRAND%.reg" START /W REGEDIT /S %Systemroot%\Setup\OEMFILES\%BRAND%\%BRAND%.reg >nul
IF EXIST "%Systemroot%\setup\OEMFILES\%BRAND%\*.xrm-ms" COPY /Y %Systemroot%\setup\OEMFILES\%BRAND%\*.xrm-ms %Systemroot%\system32\oem >nul
cscript //nologo %Systemroot%\system32\slmgr.vbs -xpr | findstr /I "计算机已永久激活" && GOTO ENDALL
GOTO DEFAULT
::-------------------------------------------------::
:OEMINS
cscript //nologo %Systemroot%\system32\slmgr.vbs -ipk %SLPKEY% >nul
cscript //nologo %Systemroot%\system32\slmgr.vbs -ilc %Systemroot%\Setup\OEMFILES\%BRAND%\%BRAND%.xrm-ms >nul

findstr /i "Starter" "%TEMP%\Edition.txt" && RD /Q /S %Systemroot%\Setup\OEMFILES\%BRAND%\info\Backgrounds >nul
findstr /i "homeBasic" "%TEMP%\Edition.txt" && RD /Q /S %Systemroot%\Setup\OEMFILES\%BRAND%\info\Backgrounds >nul

MD %Systemroot%\system32\oem >nul
MD %Systemroot%\system32\oobe\info >nul
MD %Systemroot%\system32\oobe\info\Backgrounds >nul
IF EXIST "%Systemroot%\Setup\OEMFILES\%BRAND%\info\Backgrounds\*.*" COPY /Y %Systemroot%\Setup\OEMFILES\%BRAND%\info\Backgrounds\*.* %Systemroot%\system32\oobe\info\Backgrounds >nul
RD /Q /S %Systemroot%\Setup\OEMFILES\%BRAND%\info\Backgrounds >nul
IF EXIST "%Systemroot%\Setup\OEMFILES\%BRAND%\info\*.*" COPY /Y %Systemroot%\Setup\OEMFILES\%BRAND%\info\*.* %Systemroot%\system32\oobe\info >nul
IF EXIST "%Systemroot%\Setup\OEMFILES\%BRAND%\*.theme" COPY /Y %Systemroot%\Setup\OEMFILES\%BRAND%\*.theme %Systemroot%\Resources\Themes >nul
IF EXIST "%Systemroot%\Setup\OEMFILES\%BRAND%\wallpaper.jpg" COPY /Y %Systemroot%\Setup\OEMFILES\%BRAND%\wallpaper.jpg %Systemroot%\Web\Wallpaper >nul
IF EXIST "%Systemroot%\Setup\OEMFILES\%BRAND%\wallpaper" XCOPY /E /Y %Systemroot%\Setup\OEMFILES\%BRAND%\wallpaper %Systemroot%\Web\Wallpaper >nul

IF EXIST "%Systemroot%\Setup\OEMFILES\%BRAND%\%BRAND%.reg" START /W REGEDIT /S %Systemroot%\Setup\OEMFILES\%BRAND%\%BRAND%.reg >nul
IF EXIST "%Systemroot%\setup\OEMFILES\%BRAND%\*.xrm-ms" COPY /Y %Systemroot%\setup\OEMFILES\%BRAND%\*.xrm-ms %Systemroot%\system32\oem >nul
cscript //nologo %Systemroot%\system32\slmgr.vbs -xpr | findstr /I "计算机已永久激活" && GOTO ENDALL
GOTO DEFAULT

:OEM7
Start /WAIT %~dp0Oem7F7.exe /a /lenovo /random /protect
GOTO ENDALL

:ENDALL
IF EXIST %windir%\system32\oobe\info\USER.bmp (
   Attrib -h %systemdrive%\ProgramData >nul
   DEL /F /Q "%systemdrive%\ProgramData\Microsoft\User Account Pictures\user.bmp" >nul
   COPY /Y %windir%\system32\oobe\info\USER.bmp "%systemdrive%\ProgramData\Microsoft\User Account Pictures\user.bmp" >nul
   Attrib +h %systemdrive%\ProgramData >nul
)
EXIT