Allow printing
Autoriser l'impression
Explanation
With this policy, you can restrict whether printing web content in Microsoft Edge is allowed.
If enabled, printing is allowed.
If disabled, printing is not allowed.
Avec cette stratégie, vous pouvez limiter la possibilité d'imprimer du contenu web dans Microsoft Edge.
Si cette stratégie est activée, l'impression est autorisée.
Si elle est désactivée, l'impression n'est pas autorisée.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\MicrosoftEdge\MainHKEY_CURRENT_USER\Software\Policies\Microsoft\MicrosoftEdge\Main- Value name
AllowPrinting
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 1 |
| Disabled | REG_DWORD = 0 |
PowerShell
PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.
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.
Computer (HKLM)
Enable
# Enable: MicrosoftEdge/AllowPrinting
$k = 'HKLM:\Software\Policies\Microsoft\MicrosoftEdge\Main'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'AllowPrinting' -Value 1 -Type DWordDisable
# Disable: MicrosoftEdge/AllowPrinting
$k = 'HKLM:\Software\Policies\Microsoft\MicrosoftEdge\Main'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'AllowPrinting' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": MicrosoftEdge/AllowPrinting
$k = 'HKLM:\Software\Policies\Microsoft\MicrosoftEdge\Main'
Remove-ItemProperty -Path $k -Name 'AllowPrinting' -ErrorAction SilentlyContinueUser (HKCU)
Enable
Disable
Revert to "Not configured"