Only display the private store within the Microsoft Store
Afficher uniquement le magasin privé dans le Microsoft Store
In Windows 10 1803, this policy replaces WindowsStore/RequirePrivateStoreOnly_1 (renamed or merged (similar name, same key)).
In Windows 10 1803, this policy replaces WindowsStore/RequirePrivateStoreOnly_2 (renamed or merged (similar name, same key)).
In Windows Server 2022, this policy replaces WindowsStore/RequirePrivateStoreOnly_1 (renamed or merged (similar name, same key)).
In Windows Server 2022, this policy replaces WindowsStore/RequirePrivateStoreOnly_2 (renamed or merged (similar name, same key)).
Explanation
Denies access to the retail catalog in the Microsoft Store, but displays the private store.
If you enable this setting, users will not be able to view the retail catalog in the Microsoft Store, 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 Microsoft Store.
Refuse l'accès au catalogue de vente au détail dans le Microsoft Store, mais affiche le magasin privé.
Si vous activez ce paramètre, les utilisateurs ne pourront pas afficher le catalogue de vente au détail dans le Microsoft Store, mais ils pourront afficher les applications dans le magasin privé.
Si vous désactivez ou ne configurez pas ce paramètre, les utilisateurs peuvent accéder au catalogue de vente au détail dans le Microsoft Store.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\WindowsStoreHKEY_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.
Computer (HKLM)
Enable
# Enable: WindowsStore/RequirePrivateStoreOnly
$k = 'HKLM:\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
$k = 'HKLM:\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
$k = 'HKLM:\Software\Policies\Microsoft\WindowsStore'
Remove-ItemProperty -Path $k -Name 'RequirePrivateStoreOnly' -ErrorAction SilentlyContinueUser (HKCU)
Enable
Disable
Revert to "Not configured"