Only display the private store within the Windows Store app
Afficher uniquement le magasin privé dans l’application du Windows Store
From Windows 10 1803, this policy is replaced by WindowsStore/RequirePrivateStoreOnly (renamed or merged (similar name, same key)).
From Windows Server 2022, this policy is replaced by WindowsStore/RequirePrivateStoreOnly (renamed or merged (similar name, same key)).
Explanation
Denies access to the retail catalog in the Windows Store app, but displays the private store.
If you enable this setting, users will not be able to view the retail catalog in the Windows Store app, but they will be able to view apps in the private store.
If you disable or don't configure this setting, users can access the retail catalog in the Windows Store app.
Refuse l’accès au catalogue de vente au détail dans l’application du Windows Store, mais affiche le magasin privé.
Si vous activez ce paramètre, les utilisateurs ne peuvent pas afficher le catalogue de vente au détail dans l’application du Windows Store, mais ils peuvent afficher les applications dans le magasin privé.
Si vous désactivez ce paramètre ou si vous ne le configurez pas, les utilisateurs peuvent accéder au catalogue de vente au détail dans l’application du Windows Store.
Registry
HKEY_CURRENT_USER\Software\Policies\Microsoft\WindowsStore- Value name
RequirePrivateStoreOnly
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 1 |
| Disabled | REG_DWORD = 0 |
PowerShell
PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.
Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.
Enable
# Enable: WindowsStore/RequirePrivateStoreOnly_1
$k = 'HKCU:\Software\Policies\Microsoft\WindowsStore'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'RequirePrivateStoreOnly' -Value 1 -Type DWordDisable
# Disable: WindowsStore/RequirePrivateStoreOnly_1
$k = 'HKCU:\Software\Policies\Microsoft\WindowsStore'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'RequirePrivateStoreOnly' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": WindowsStore/RequirePrivateStoreOnly_1
$k = 'HKCU:\Software\Policies\Microsoft\WindowsStore'
Remove-ItemProperty -Path $k -Name 'RequirePrivateStoreOnly' -ErrorAction SilentlyContinue