@Volvo I made sort of my own solution, but I’m not sure if that will suit you… The solution is as follows:
-
I rceated a firewall rule in the windows firewall for in and out-bound traffic and blocked the following .exe file:
“C:\Program Files\WindowsApps\Microsoft.WindowsStore_12007.1001.2.0_x64__8wekyb3d8bbwe\WinStore.App.exe”
-
I named both firewall rules (inbound and outbound) “Windows Store”.
-
Once those rules were in place, I tested them to see whether the microsoft store still connects to the internet. (Be aware it might open up and show you the cached pictures, but the second you will try to choose a certain app, you won’t be able to reach it if the firewall rule works correctly).
-
Then to make it for the user easy I wrote two tiny scripts:
a)
Disable-NetFirewallRule -DisplayName "Windows Store"
b)
Enable-NetFirewallRule -DisplayName "Windows Store"
Script a) disables the firewall rule that we created beforehand and allows again internet traffic to the windows store. Script b) does the opposite.
Each srcipt is placed in a .ps1 file. Now to make it user friendly I created a shortcut to the desktop. To create the shortcut follow these stepps:
- Right click on the desktop and and select from the dropdown “New” and then “Shortcut”.
- Paste to the shortcut target box the following:
powershell.exe -ExecutionPolicy Bypass -File "the path to the .ps1 file, for example C:\users\admin\documents\WS.ps1"
The path to the .ps1 file must be in double quotes.
So you create two shortcuts, each one to the right script and give them an icon that makes it understanable which one enables the firewall rule (and through that disables the store) and which one disables the firewall rule (and through that enables the store again).
Make sure that those shortcuts automatically run as a admin by right clicking on the shortcut>select properties>advanced> and tick run as admin as shown:

In my case I placed the scripts in a folder which wasn’t accessible for the other standard users and put the shortcuts on the Admin desktop.
Hope this helps.
LMK if you need any assistance…