Allow download restrictions: registry value DownloadRestrictions (Chrome\Recommended)ComputerHKLM\Software\Policies\Google\Chrome\Recommended
- Policy ID
- DownloadRestrictions_recommended
- Scope
- Computer Configuration, User Configuration
- Supported on
- Microsoft Windows 7 or later
- Source
- Google Chrome Policy Templates (version 156.0.8078.80)
- Category
- Google › Google Chrome - Default Settings (users can override)
Registry
DownloadRestrictions
REG_DWORDComputerUser…\Software\Policies\Google\Chrome\RecommendedHKLM\Software\Policies\Google\Chrome\Recommended Current key
HKCU\Software\Policies\Google\Chrome\Recommended
HKCU\Software\Policies\Google\Chrome\Recommended
- Enabled value
- Depends on the option value
- Element
- Download restrictions
| Item | Stored value |
|---|---|
| No special restrictions. Default. | 0 |
| Block malicious downloads and dangerous file types. | 1 |
| Block malicious downloads, uncommon or unwanted downloads and dangerous file types. | 2 |
| Block all downloads. | 3 |
| Block malicious downloads. Recommended. | 4 |
Apply with .reg · CMD · PowerShell
ComputerMachine-wide setting
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Policies\Google\Chrome\Recommended] ; Options (use only one) ; No special restrictions. Default. "DownloadRestrictions"=dword:00000000 ; Block malicious downloads and dangerous file types. "DownloadRestrictions"=dword:00000001 ; Block malicious downloads, uncommon or unwanted downloads and dangerous file types. "DownloadRestrictions"=dword:00000002 ; Block all downloads. "DownloadRestrictions"=dword:00000003 ; Block malicious downloads. Recommended. "DownloadRestrictions"=dword:00000004
CMD
:: Options (use only one) :: No special restrictions. Default. reg add "HKLM\Software\Policies\Google\Chrome\Recommended" /v "DownloadRestrictions" /t REG_DWORD /d 0 /f :: Block malicious downloads and dangerous file types. reg add "HKLM\Software\Policies\Google\Chrome\Recommended" /v "DownloadRestrictions" /t REG_DWORD /d 1 /f :: Block malicious downloads, uncommon or unwanted downloads and dangerous file types. reg add "HKLM\Software\Policies\Google\Chrome\Recommended" /v "DownloadRestrictions" /t REG_DWORD /d 2 /f :: Block all downloads. reg add "HKLM\Software\Policies\Google\Chrome\Recommended" /v "DownloadRestrictions" /t REG_DWORD /d 3 /f :: Block malicious downloads. Recommended. reg add "HKLM\Software\Policies\Google\Chrome\Recommended" /v "DownloadRestrictions" /t REG_DWORD /d 4 /f
PowerShell
# Common: create the key New-Item -Path 'HKLM:\Software\Policies\Google\Chrome\Recommended' -Force | Out-Null # Options (use only one) # No special restrictions. Default. New-ItemProperty -Path 'HKLM:\Software\Policies\Google\Chrome\Recommended' -Name 'DownloadRestrictions' -PropertyType DWord -Value 0 -Force | Out-Null # Block malicious downloads and dangerous file types. New-ItemProperty -Path 'HKLM:\Software\Policies\Google\Chrome\Recommended' -Name 'DownloadRestrictions' -PropertyType DWord -Value 1 -Force | Out-Null # Block malicious downloads, uncommon or unwanted downloads and dangerous file types. New-ItemProperty -Path 'HKLM:\Software\Policies\Google\Chrome\Recommended' -Name 'DownloadRestrictions' -PropertyType DWord -Value 2 -Force | Out-Null # Block all downloads. New-ItemProperty -Path 'HKLM:\Software\Policies\Google\Chrome\Recommended' -Name 'DownloadRestrictions' -PropertyType DWord -Value 3 -Force | Out-Null # Block malicious downloads. Recommended. New-ItemProperty -Path 'HKLM:\Software\Policies\Google\Chrome\Recommended' -Name 'DownloadRestrictions' -PropertyType DWord -Value 4 -Force | Out-Null
UserPer-account setting
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Policies\Google\Chrome\Recommended] ; Options (use only one) ; No special restrictions. Default. "DownloadRestrictions"=dword:00000000 ; Block malicious downloads and dangerous file types. "DownloadRestrictions"=dword:00000001 ; Block malicious downloads, uncommon or unwanted downloads and dangerous file types. "DownloadRestrictions"=dword:00000002 ; Block all downloads. "DownloadRestrictions"=dword:00000003 ; Block malicious downloads. Recommended. "DownloadRestrictions"=dword:00000004
CMD
:: Options (use only one) :: No special restrictions. Default. reg add "HKCU\Software\Policies\Google\Chrome\Recommended" /v "DownloadRestrictions" /t REG_DWORD /d 0 /f :: Block malicious downloads and dangerous file types. reg add "HKCU\Software\Policies\Google\Chrome\Recommended" /v "DownloadRestrictions" /t REG_DWORD /d 1 /f :: Block malicious downloads, uncommon or unwanted downloads and dangerous file types. reg add "HKCU\Software\Policies\Google\Chrome\Recommended" /v "DownloadRestrictions" /t REG_DWORD /d 2 /f :: Block all downloads. reg add "HKCU\Software\Policies\Google\Chrome\Recommended" /v "DownloadRestrictions" /t REG_DWORD /d 3 /f :: Block malicious downloads. Recommended. reg add "HKCU\Software\Policies\Google\Chrome\Recommended" /v "DownloadRestrictions" /t REG_DWORD /d 4 /f
PowerShell
# Common: create the key New-Item -Path 'HKCU:\Software\Policies\Google\Chrome\Recommended' -Force | Out-Null # Options (use only one) # No special restrictions. Default. New-ItemProperty -Path 'HKCU:\Software\Policies\Google\Chrome\Recommended' -Name 'DownloadRestrictions' -PropertyType DWord -Value 0 -Force | Out-Null # Block malicious downloads and dangerous file types. New-ItemProperty -Path 'HKCU:\Software\Policies\Google\Chrome\Recommended' -Name 'DownloadRestrictions' -PropertyType DWord -Value 1 -Force | Out-Null # Block malicious downloads, uncommon or unwanted downloads and dangerous file types. New-ItemProperty -Path 'HKCU:\Software\Policies\Google\Chrome\Recommended' -Name 'DownloadRestrictions' -PropertyType DWord -Value 2 -Force | Out-Null # Block all downloads. New-ItemProperty -Path 'HKCU:\Software\Policies\Google\Chrome\Recommended' -Name 'DownloadRestrictions' -PropertyType DWord -Value 3 -Force | Out-Null # Block malicious downloads. Recommended. New-ItemProperty -Path 'HKCU:\Software\Policies\Google\Chrome\Recommended' -Name 'DownloadRestrictions' -PropertyType DWord -Value 4 -Force | Out-Null