Configure Microsoft Defender Application Guard print settings
Configurer les paramètres d’impression de Microsoft Defender Application Guard
Explanation
This policy setting allows you to decide how the print functionality behaves while in Microsoft Defender Application Guard.
If you enable this setting, you must choose one or many of the following behaviors:
- Disable all print functionality in Application Guard.
- Enable printing to existing network printers.
- Enable printing to local printers.
- Enable printing to PDF, allows people to print as PDF and save the resulting file on the host.
- Enable printing to XPS, allows people to print as XPS and save the resulting file on the host.
If you disable or don't configure this setting, all print functionality is turned off in Application Guard.
Ce paramètre de stratégie vous permet de déterminer comment la fonctionnalité d'impression se comporte dans Microsoft Defender Application Guard.
Si vous activez ce paramètre, vous devez choisir un ou plusieurs des comportements suivants :
- Désactiver toutes les fonctionnalités d'impression dans Application Guard.
- Autoriser l'impression sur des imprimantes réseau existantes.
- Autoriser l'impression sur des imprimantes locales.
- Autoriser l'impression en PDF, permettre à des personnes d'imprimer en PDF et d'enregistrer le fichier résultant sur l'hôte.
- Autoriser l'impression en XPS, permettre à des personnes d'imprimer en PDF et d'enregistrer le fichier résultant sur l'hôte.
Si vous ne configurez pas ce paramètre ou si vous le désactivez, toutes les fonctionnalités d'impression sont désactivées dans Application Guard.
Registry
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\AppHVSI- Value name
- not defined in the ADMX
Enable / disable values: not defined in the ADMX (see the options below).
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.
Enable
# Enable: apphvsi/AppHVSI_PrintingConfig
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\AppHVSI'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Allowed print types in Application Guard.
Set-ItemProperty -Path $k -Name 'AppHVSIPrintingSettings' -Value 0 -Type DWord # between 0 and 15Disable
# Disable: apphvsi/AppHVSI_PrintingConfig
# No value is written in the "Disabled" state (nothing defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": apphvsi/AppHVSI_PrintingConfig
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\AppHVSI'
Remove-ItemProperty -Path $k -Name 'AppHVSIPrintingSettings' -ErrorAction SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| Allowed print types in Application Guard.Types d'impression autorisés dans Application Guard.AppHVSIPrintingSettings_TextBox | Numeric boxdecimal | AppHVSIPrintingSettings | REG_DWORD | Min: 0 · Max: 15 · Default (UI): 0 |