Activer ou désactiver User-Agent Reduction. : valeur de Registre UserAgentReductionOrdinateurHKLM\Software\Policies\Google\Chrome
- ID de stratégie
- UserAgentReduction
- Étendue
- Configuration ordinateur, configuration utilisateur
- Pris en charge sur
- Microsoft Windows 7 ou version ultérieure
- Source
- Google Chrome Policy Templates (version 156.0.8078.80)
- Catégorie
- Google › Google Chrome › Règles supprimées
Registre
UserAgentReduction
REG_DWORDOrdinateurUtilisateur…\Software\Policies\Google\ChromeHKLM\Software\Policies\Google\Chrome Clé actuelle
HKCU\Software\Policies\Google\Chrome
HKCU\Software\Policies\Google\Chrome
- Valeur si activée
- Dépend de la valeur de l'option
- Élément
- Activer ou désactiver User-Agent Reduction.
| Entrée | Valeur stockée |
|---|---|
| User-agent réduit. | 0 |
| User-agent complet (ancien). | 1 |
| User-agent réduit. | 2 |
Appliquer avec .reg · CMD · PowerShell
OrdinateurParamètre valable pour tout l’ordinateur
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Policies\Google\Chrome] ; Options (en utiliser une seule) ; User-agent réduit. "UserAgentReduction"=dword:00000000 ; User-agent complet (ancien). "UserAgentReduction"=dword:00000001 ; User-agent réduit. "UserAgentReduction"=dword:00000002
CMD
:: Options (en utiliser une seule) :: User-agent réduit. reg add "HKLM\Software\Policies\Google\Chrome" /v "UserAgentReduction" /t REG_DWORD /d 0 /f :: User-agent complet (ancien). reg add "HKLM\Software\Policies\Google\Chrome" /v "UserAgentReduction" /t REG_DWORD /d 1 /f :: User-agent réduit. reg add "HKLM\Software\Policies\Google\Chrome" /v "UserAgentReduction" /t REG_DWORD /d 2 /f
PowerShell
# Commun : créer la clé New-Item -Path 'HKLM:\Software\Policies\Google\Chrome' -Force | Out-Null # Options (en utiliser une seule) # User-agent réduit. New-ItemProperty -Path 'HKLM:\Software\Policies\Google\Chrome' -Name 'UserAgentReduction' -PropertyType DWord -Value 0 -Force | Out-Null # User-agent complet (ancien). New-ItemProperty -Path 'HKLM:\Software\Policies\Google\Chrome' -Name 'UserAgentReduction' -PropertyType DWord -Value 1 -Force | Out-Null # User-agent réduit. New-ItemProperty -Path 'HKLM:\Software\Policies\Google\Chrome' -Name 'UserAgentReduction' -PropertyType DWord -Value 2 -Force | Out-Null
UtilisateurParamètre par compte
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Policies\Google\Chrome] ; Options (en utiliser une seule) ; User-agent réduit. "UserAgentReduction"=dword:00000000 ; User-agent complet (ancien). "UserAgentReduction"=dword:00000001 ; User-agent réduit. "UserAgentReduction"=dword:00000002
CMD
:: Options (en utiliser une seule) :: User-agent réduit. reg add "HKCU\Software\Policies\Google\Chrome" /v "UserAgentReduction" /t REG_DWORD /d 0 /f :: User-agent complet (ancien). reg add "HKCU\Software\Policies\Google\Chrome" /v "UserAgentReduction" /t REG_DWORD /d 1 /f :: User-agent réduit. reg add "HKCU\Software\Policies\Google\Chrome" /v "UserAgentReduction" /t REG_DWORD /d 2 /f
PowerShell
# Commun : créer la clé New-Item -Path 'HKCU:\Software\Policies\Google\Chrome' -Force | Out-Null # Options (en utiliser une seule) # User-agent réduit. New-ItemProperty -Path 'HKCU:\Software\Policies\Google\Chrome' -Name 'UserAgentReduction' -PropertyType DWord -Value 0 -Force | Out-Null # User-agent complet (ancien). New-ItemProperty -Path 'HKCU:\Software\Policies\Google\Chrome' -Name 'UserAgentReduction' -PropertyType DWord -Value 1 -Force | Out-Null # User-agent réduit. New-ItemProperty -Path 'HKCU:\Software\Policies\Google\Chrome' -Name 'UserAgentReduction' -PropertyType DWord -Value 2 -Force | Out-Null