Created
August 5, 2023 04:20
-
-
Save KevinNitroG/a31cf459316ac05922377753d20e1361 to your computer and use it in GitHub Desktop.
Set OEMID & StoreContentModifier for Dell's computer in Microsoft Store to fix downloading Dell's apps issue. Run as administrator. Source from reddit maybe. But it doesn't work for me 😪
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
setlocal | |
echo: | |
echo Setting OEMID in RegEdit... | |
REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Store" /v OEMID /f /t REG_SZ /d DELL | |
echo: | |
echo Setting SCMID... | |
echo Fetching System Model Name | |
for /f "tokens=2 delims==" %%a in ('wmic computersystem get model /format:list') do set SYSMODEL=%%a | |
set SYSMODEL=%SYSMODEL: =% | |
echo System Model Name is "%SYSMODEL%" | |
for /f "tokens=1 delims= " %%a in ("%SYSMODEL%") do set SYSNAME=%%a | |
echo System Name is %SYSNAME% | |
set SCMID=DELL_%SYSNAME% | |
echo SCMID to be set is %SCMID% | |
echo Setting SCMID in RegEdit | |
REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Store" /v StoreContentModifier /f /t REG_SZ /d %SCMID% |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment