Configure Camera Options
Configurer les options de caméra
Explanation
This policy setting allows you to control the behavior of Camera devices on the machine.
If you enable this policy setting, you can select one of the following modes:
AutoShare: Camera devices will be shared among multiple applications, allowing them to access the camera simultaneously.
This mode is useful for scenarios where multiple applications need to use the camera at the same time.
SafeMode: Camera devices will be auto-shared and operate in a restricted mode, limiting their functionality and access to certain features.
This mode is designed to enhance reliability of the camera.
If you disable or do not configure this policy setting, Camera devices will function in their default
mode without any restrictions.
Ce paramètre de stratégie vous permet de contrôler le comportement des appareils photo sur l’ordinateur.
Si vous activez ce paramètre de stratégie, vous pouvez sélectionner l’un des modes suivants :
Partage automatique : les appareils photo seront partagés entre plusieurs applications, ce qui leur permettra d’accéder simultanément à l’appareil photo.
Ce mode est utile dans les scénarios où plusieurs applications doivent utiliser la caméra en même temps.
SafeMode : les appareils photo sont automatiquement partagés et fonctionnent en mode restreint, ce qui limite leurs fonctionnalités et leur accès à certaines fonctionnalités.
Ce mode est conçu pour améliorer la fiabilité de l’appareil photo.
Si vous désactivez ou ne configurez pas ce paramètre de stratégie, les appareils photo fonctionnent par défaut
mode sans aucune restriction.
Registry
HKEY_LOCAL_MACHINE\software\Policies\Microsoft\Camera- Value name
ConfigureCameraOptions
| State | Value written |
|---|---|
| Enabled | not defined in the ADMX (see the options below) |
| Disabled | 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.
The ADMX does not specify the value written when enabled; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled). The commands below use 1/0 as an assumption.
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: Camera/ConfigureCameraOptions
$k = 'HKLM:\software\Policies\Microsoft\Camera'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# The ADMX does not specify the value written; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled)
Set-ItemProperty -Path $k -Name 'ConfigureCameraOptions' -Value 1 -Type DWord # assumed value (not defined in the ADMX)
# Configure Camera Opitons
# Possible options:
# AutoShare = 1
# SafeMode = 2
Set-ItemProperty -Path $k -Name 'ConfigureCameraOptions' -Value 1 -Type DWordDisable
# Disable: Camera/ConfigureCameraOptions
$k = 'HKLM:\software\Policies\Microsoft\Camera'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# The ADMX does not specify the value written; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled)
Set-ItemProperty -Path $k -Name 'ConfigureCameraOptions' -Value 0 -Type DWord # assumed value (not defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": Camera/ConfigureCameraOptions
$k = 'HKLM:\software\Policies\Microsoft\Camera'
Remove-ItemProperty -Path $k -Name 'ConfigureCameraOptions' -ErrorAction SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Configure Camera Opitons:Configurer les options de caméra :ConfigureCameraOptions_Dropdown | Drop-down listenum | ConfigureCameraOptions | REG_DWORD | Default choice (UI): #0
|