Open the Registry Editor. To open the Run tab, press the Windows key + R. Type regedit and press Enter. Navigate to HKEY_LOCAL_MACHINE > SOFTWARE > Policies > Microsoft > WindowsStore. Create a New DWORD Value, then rename it as RemoveWindowsStore. Double click on this key to edit its value. Type 1 to disable the Windows Store. Save your new settings and close the Registry.
To enable the Windows Store again, simply change the value of RemoveWindowsStore to 0.
Open the Group Policy Editor. Press Windows key + R to launch the Run tab. Type gpedit.msc and press Enter. Navigate to User Configuration\Administrative Templates\Windows Components\Store. Double-click on Turn off the Windows Store and select Enabled. Save your settings.
That's it! Access to the Windows Store has been disabled. If a user tries to open the Windows Store, the following message will be displayed:
Windows Store isn't available on this PC. Contact your system administrator for more information