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