Open in the explorer

Let Windows apps access user movements while running in the background

Autoriser les applications Windows à accéder aux mouvements de l'utilisateur pendant l'exécution en arrière-plan

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › Windows Components › App Privacy FR: Configuration ordinateur › Stratégies › Modèles d'administration › Composants Windows › Confidentialité de l’application
Supported on
At least Windows Server 2016, Windows 10 FR: Au moins Windows Server 2016, Windows 10
ADMX file
AppPrivacy.admx
Internal name
AppPrivacy/LetAppsAccessBackgroundSpatialPerception

Explanation

This policy setting specifies whether Windows apps can access the movement of the user's head, hands, motion controllers, and other tracked objects, while the apps are running in the background.

You can specify either a default setting for all apps or a per-app setting by specifying a Package Family Name. You can get the Package Family Name for an app by using the Get-AppPackage Windows PowerShell cmdlet. A per-app setting overrides the default setting.

If you choose the "User is in control" option, employees in your organization can decide whether Windows apps can access the user's movements while the apps are running in the background by using Settings > Privacy on the device.

If you choose the "Force Allow" option, Windows apps are allowed to access user movements while the apps are running in the background and employees in your organization cannot change it.

If you choose the "Force Deny" option, Windows apps are not allowed to access user movements while the apps are running in the background and employees in your organization cannot change it.

If you disable or do not configure this policy setting, employees in your organization can decide whether Windows apps can access the user's movements while the apps are running in the background by using Settings > Privacy on the device.

If an app is open when this Group Policy object is applied on a device, employees must restart the app or device for the policy changes to be applied to the app.

French text from Windows 11 26H2

Ce paramètre de stratégie spécifie si les applications Windows peuvent accéder au mouvement de la tête, des mains, des contrôleurs de mouvement de l’utilisateur et d’autres objets suivis, alors que les applications s’exécutent en arrière-plan.

Vous pouvez spécifier un paramètre par défaut pour toutes les applications ou un paramètre par application en attribuant un nom de la famille de packages. Vous pouvez obtenir le nom de la famille de packages pour une application à l’aide de l’applet de commande Get-AppPackage Windows PowerShell. Un paramètre par application remplace le paramètre par défaut.

Si vous choisissez l’option « Sous le contrôle de l’utilisateur », les employés de votre organisation peuvent décider si les applications Windows peuvent accéder aux mouvements de l’utilisateur pendant que les applications s’exécutent en arrière-plan à l'aide de Paramètres > Confidentialité sur l’appareil.

Si vous choisissez l’option « Forcer l’autorisation », les applications Windows ne sont pas autorisées à accéder aux mouvements de l’utilisateur pendant que les applications s’exécutent en arrière-plan et les employés de votre organisation ne peuvent pas la modifier.

Si vous choisissez l’option « Forcer le refus », les applications Windows ne sont pas autorisées à accéder aux mouvements de l’utilisateur pendant que les applications s’exécutent en arrière-plan et les employés de votre organisation ne peuvent pas la modifier.

Si vous désactivez ce paramètre de stratégie ou si vous ne le configurez pas, les employés de votre organisation peuvent décider si les applications Windows peuvent accéder aux mouvements de l’utilisateur pendant que les applications s’exécutent en arrière-plan à l'aide de Paramètres > Confidentialité sur l’appareil.

Si une application est ouverte lorsque cet objet de stratégie de groupe est appliqué sur un appareil, les employés doivent redémarrer l’application ou l’appareil pour que les modifications de stratégie soient appliquées à l’application.

Registry

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\AppPrivacy
Value name
not defined in the ADMX

Enable / disable values: not defined in the ADMX (see the options below).

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: AppPrivacy/LetAppsAccessBackgroundSpatialPerception
$k = 'HKLM:\Software\Policies\Microsoft\Windows\AppPrivacy'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Default for all apps
# Possible options:
#   User is in control = 0
#   Force Allow = 1
#   Force Deny = 2
Set-ItemProperty -Path $k -Name 'LetAppsAccessBackgroundSpatialPerception' -Value 0 -Type DWord
#
Set-ItemProperty -Path $k -Name 'LetAppsAccessBackgroundSpatialPerception_UserInControlOfTheseApps' -Value @('<value1>', '<value2>') -Type MultiString
#
Set-ItemProperty -Path $k -Name 'LetAppsAccessBackgroundSpatialPerception_ForceAllowTheseApps' -Value @('<value1>', '<value2>') -Type MultiString
#
Set-ItemProperty -Path $k -Name 'LetAppsAccessBackgroundSpatialPerception_ForceDenyTheseApps' -Value @('<value1>', '<value2>') -Type MultiString

Disable

# Disable: AppPrivacy/LetAppsAccessBackgroundSpatialPerception
# No value is written in the "Disabled" state (nothing defined in the ADMX)

Revert to "Not configured"

# Revert to "Not configured": AppPrivacy/LetAppsAccessBackgroundSpatialPerception
$k = 'HKLM:\Software\Policies\Microsoft\Windows\AppPrivacy'
Remove-ItemProperty -Path $k -Name 'LetAppsAccessBackgroundSpatialPerception' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'LetAppsAccessBackgroundSpatialPerception_UserInControlOfTheseApps' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'LetAppsAccessBackgroundSpatialPerception_ForceAllowTheseApps' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'LetAppsAccessBackgroundSpatialPerception_ForceDenyTheseApps' -ErrorAction SilentlyContinue

Options (4)

LabelControlRegistry valueREG typeConstraints / details
Default for all apps:Valeur par défaut pour toutes les applications :LetAppsAccessBackgroundSpatialPerception_EnumDrop-down listenumLetAppsAccessBackgroundSpatialPerceptionREG_DWORD
Default choice (UI): #0
LabelValue
User is in controlREG_DWORD = 0
Force AllowREG_DWORD = 1
Force DenyREG_DWORD = 2
LetAppsAccessBackgroundSpatialPerception_UserInControlOfTheseApps_ListMultiline text boxmultiTextLetAppsAccessBackgroundSpatialPerception_UserInControlOfTheseAppsREG_MULTI_SZ
LetAppsAccessBackgroundSpatialPerception_ForceAllowTheseApps_ListMultiline text boxmultiTextLetAppsAccessBackgroundSpatialPerception_ForceAllowTheseAppsREG_MULTI_SZ
LetAppsAccessBackgroundSpatialPerception_ForceDenyTheseApps_ListMultiline text boxmultiTextLetAppsAccessBackgroundSpatialPerception_ForceDenyTheseAppsREG_MULTI_SZ

Availability

Windows 10

✓ 22H2✓ 21H2✓ 21H1✓ 20H2✓ 2004— 1909— 1903— 1809— 1803— 1709— 1703— 1607— 1511— 1507

Windows Server