Isolate print drivers from applications
Isoler les pilotes d’impression des applications
Explanation
Determines if print driver components are isolated from applications instead of normally loading them into applications. Isolating print drivers greatly reduces the risk of a print driver failure causing an application crash.
Not all applications support driver isolation. By default, Microsoft Excel 2007, Excel 2010, Word 2007, Word 2010 and certain other applications are configured to support it. Other applications may also be capable of isolating print drivers, depending on whether they are configured for it.
If you enable or do not configure this policy setting, then applications that are configured to support driver isolation will be isolated.
If you disable this policy setting, then print drivers will be loaded within all associated application processes.
Notes:
-This policy setting applies only to applications opted into isolation.
-This policy setting applies only to print drivers loaded by applications. Print drivers loaded by the print spooler are not affected.
-This policy setting is only checked once during the lifetime of a process. After changing the policy, a running application must be relaunched before settings take effect.
Détermine si les composants pilotes d’impression sont isolés des applications plutôt que de les charger normalement dans des applications. En isolant les pilotes d’impression, vous limitez considérablement le risque d’arrêt brutal d’une application provoqué par la défaillance d’un pilote d’impression.
Certaines applications ne prennent pas en charge l’isolation d’un pilote. Par défaut, la configuration de Microsoft Excel 2007, Excel 2010, Word 2007, Word 2010 et certaines autres applications prend en charge l’isolation des pilotes. D’autres applications sont également capables d’isoler des pilotes d’impression selon qu’elles sont ou non configurées à cette fin.
Si vous activez ou ne configurez pas ce paramètre de stratégie, les applications configurées pour prendre en charge l’isolation des pilotes sont isolées.
Si vous désactivez ce paramètre de stratégie, les pilotes d’impression sont chargés dans tous les processus des applications associées.
Remarques :
- Ce paramètre de stratégie ne s’applique qu’aux applications qui prennent en charge l’isolation.
- Ce paramètre de stratégie ne s’applique qu’aux pilotes d’impression chargés par les applications. Les pilotes d’impression chargés par les spouleurs d’impression ne sont pas affectés.
- Ce paramètre de stratégie n’est sélectionné qu’une fois pendant la durée de vie d’un processus. Après avoir modifié la stratégie, vous devez relancer une application en cours d’exécution pour que les paramètres prennent effet.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\Printers- Value name
ApplicationDriverIsolation
| 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.
Enable
# Enable: Printing/ApplicationDriverIsolation
$k = 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'ApplicationDriverIsolation' -Value 1 -Type DWordDisable
# Disable: Printing/ApplicationDriverIsolation
$k = 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'ApplicationDriverIsolation' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": Printing/ApplicationDriverIsolation
$k = 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers'
Remove-ItemProperty -Path $k -Name 'ApplicationDriverIsolation' -ErrorAction SilentlyContinue