In the Registry key
HKEY_LOCAL_MACHINE\ SOFTWARE\ Policies\ Microsoft\ WindowsStore
set the DWord value "RemoveWindowsStore" to 1. You can use the following batch file for the task. Open Notepad, then copy & paste the following text.
@echo off
echo.
echo Press D to DISABLE access to the Windows Store
echo application, or E to ENABLE access, and press Enter.
echo.
echo Any other key and Enter, or Enter alone,
echo exits without changes.
echo.
set keyPress16096=
set /p keyPress16096=
echo de| find /i "%keyPress16096%" > NUL
if errorlevel 1 goto Quit
echo.
set key=HKLM\SOFTWARE\Policies
set key=%key%\Microsoft\WindowsStore
echo e| find /i "%keyPress16096%" > NUL
If errorlevel 1 (
reg add %key% /v RemoveWindowsStore /t REG_DWORD /d 1 /F > NUL
echo Windows Store application is disabled.
) else (
reg delete %key% /v RemoveWindowsStore /f 2> NUL > NUL
echo Windows Store application is enabled.
)
ping -n 4 127.0.0.1 > NUL
:Quit
set keyPress16096=
Click File and Save As, select the Desktop or a convenient folder to save to, type "RemoveWindowsStore.bat" (including the quotes) as the file name, select ANSI encoding, and click Save. Close Notepad.
Navigate to the location of the RemoveWindowsStore.bat file. Right-click the file and click Run As Administrator, then follow the prompts.