Set the Intune Machine Policy to Enable the Windows Store
Set the Intune User Policy to Disable the Windows Store

Make sure to block the website

Using Custom Indicator List

Set the Intune Machine Policy to Enable the Windows Store
Set the Intune User Policy to Disable the Windows Store
Make sure to block the website
Using Custom Indicator List