Configuración predeterminada de los sensores: valor del Registro DefaultSensorsSettingEquipoHKLM\Software\Policies\Google\Chrome

Id. de directiva
DefaultSensorsSetting
Ámbito
Configuración del equipo, configuración de usuario
Compatible con
Microsoft Windows 7 o versiones posteriores
Origen
Google Chrome Policy Templates (versión 156.0.8078.80)
Categoría
Google › Google Chrome › Configuración de contenido

Registro

DefaultSensorsSetting

REG_DWORDEquipoUsuario
…\Software\Policies\Google\ChromeHKLM\Software\Policies\Google\Chrome Clave actual
HKCU\Software\Policies\Google\Chrome
Valor al habilitar
Depende del valor de la opción
Elemento
Configuración predeterminada de los sensores
Opciones
Elemento de listaValor almacenado
Permitir a los sitios web acceder a los sensores1
No permitir a ningún sitio web acceder a los sensores2
Preguntar siempre que un sitio quiera acceder a los sensores3
Aplicar con .reg · CMD · PowerShell
EquipoConfiguración global del equipo
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Google\Chrome]

; Opciones (usar solo una)
; Permitir a los sitios web acceder a los sensores
"DefaultSensorsSetting"=dword:00000001
; No permitir a ningún sitio web acceder a los sensores
"DefaultSensorsSetting"=dword:00000002
; Preguntar siempre que un sitio quiera acceder a los sensores
"DefaultSensorsSetting"=dword:00000003
CMD
:: Opciones (usar solo una)

:: Permitir a los sitios web acceder a los sensores
reg add "HKLM\Software\Policies\Google\Chrome" /v "DefaultSensorsSetting" /t REG_DWORD /d 1 /f
:: No permitir a ningún sitio web acceder a los sensores
reg add "HKLM\Software\Policies\Google\Chrome" /v "DefaultSensorsSetting" /t REG_DWORD /d 2 /f
:: Preguntar siempre que un sitio quiera acceder a los sensores
reg add "HKLM\Software\Policies\Google\Chrome" /v "DefaultSensorsSetting" /t REG_DWORD /d 3 /f
PowerShell
# Común: crear la clave
New-Item -Path 'HKLM:\Software\Policies\Google\Chrome' -Force | Out-Null

# Opciones (usar solo una)
# Permitir a los sitios web acceder a los sensores
New-ItemProperty -Path 'HKLM:\Software\Policies\Google\Chrome' -Name 'DefaultSensorsSetting' -PropertyType DWord -Value 1 -Force | Out-Null
# No permitir a ningún sitio web acceder a los sensores
New-ItemProperty -Path 'HKLM:\Software\Policies\Google\Chrome' -Name 'DefaultSensorsSetting' -PropertyType DWord -Value 2 -Force | Out-Null
# Preguntar siempre que un sitio quiera acceder a los sensores
New-ItemProperty -Path 'HKLM:\Software\Policies\Google\Chrome' -Name 'DefaultSensorsSetting' -PropertyType DWord -Value 3 -Force | Out-Null
UsuarioConfiguración por cuenta
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Policies\Google\Chrome]

; Opciones (usar solo una)
; Permitir a los sitios web acceder a los sensores
"DefaultSensorsSetting"=dword:00000001
; No permitir a ningún sitio web acceder a los sensores
"DefaultSensorsSetting"=dword:00000002
; Preguntar siempre que un sitio quiera acceder a los sensores
"DefaultSensorsSetting"=dword:00000003
CMD
:: Opciones (usar solo una)

:: Permitir a los sitios web acceder a los sensores
reg add "HKCU\Software\Policies\Google\Chrome" /v "DefaultSensorsSetting" /t REG_DWORD /d 1 /f
:: No permitir a ningún sitio web acceder a los sensores
reg add "HKCU\Software\Policies\Google\Chrome" /v "DefaultSensorsSetting" /t REG_DWORD /d 2 /f
:: Preguntar siempre que un sitio quiera acceder a los sensores
reg add "HKCU\Software\Policies\Google\Chrome" /v "DefaultSensorsSetting" /t REG_DWORD /d 3 /f
PowerShell
# Común: crear la clave
New-Item -Path 'HKCU:\Software\Policies\Google\Chrome' -Force | Out-Null

# Opciones (usar solo una)
# Permitir a los sitios web acceder a los sensores
New-ItemProperty -Path 'HKCU:\Software\Policies\Google\Chrome' -Name 'DefaultSensorsSetting' -PropertyType DWord -Value 1 -Force | Out-Null
# No permitir a ningún sitio web acceder a los sensores
New-ItemProperty -Path 'HKCU:\Software\Policies\Google\Chrome' -Name 'DefaultSensorsSetting' -PropertyType DWord -Value 2 -Force | Out-Null
# Preguntar siempre que un sitio quiera acceder a los sensores
New-ItemProperty -Path 'HKCU:\Software\Policies\Google\Chrome' -Name 'DefaultSensorsSetting' -PropertyType DWord -Value 3 -Force | Out-Null