Turn off access to the Store
Désactiver l’accès au Store
Explanation
This policy setting specifies whether to use the Store service for finding an application to open a file with an unhandled file type or protocol association.
When a user opens a file type or protocol that is not associated with any applications on the computer, the user is given the choice to select a local application or use the Store service to find an application.
If you enable this policy setting, the "Look for an app in the Store" item in the Open With dialog is removed.
If you disable or do not configure this policy setting, the user is allowed to use the Store service and the Store item is available in the Open With dialog.
Ce paramètre de stratégie indique si le service Store doit être utilisé lors de la recherche d’une application permettant d’ouvrir un fichier ayant une association de protocole ou de type de fichier non gérée.
Lorsqu’un utilisateur ouvre un protocole ou type de fichier qui n’est associé à aucune application présente sur l’ordinateur, il se voit proposer de choisir une application locale ou d’utiliser le service Store pour rechercher une application.
Si vous activez ce paramètre de stratégie, l’élément « Rechercher une application dans le Store » est supprimé dans la boîte de dialogue Ouvrir avec.
Si vous désactivez ce paramètre de stratégie ou si vous ne le configurez pas, l’utilisateur est autorisé à utiliser le service Store. En outre, l’élément Store est disponible dans la boîte de dialogue Ouvrir avec.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\Explorer- Value name
NoUseStoreOpenWith
| 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: ICM/ShellNoUseStoreOpenWith_2
$k = 'HKLM:\Software\Policies\Microsoft\Windows\Explorer'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'NoUseStoreOpenWith' -Value 1 -Type DWordDisable
# Disable: ICM/ShellNoUseStoreOpenWith_2
$k = 'HKLM:\Software\Policies\Microsoft\Windows\Explorer'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'NoUseStoreOpenWith' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": ICM/ShellNoUseStoreOpenWith_2
$k = 'HKLM:\Software\Policies\Microsoft\Windows\Explorer'
Remove-ItemProperty -Path $k -Name 'NoUseStoreOpenWith' -ErrorAction SilentlyContinue