Open in the explorer

Change Microsoft XPS Document Writer (MXDW) default output format to the legacy Microsoft XPS format (*.xps)

Remplacer le format de sortie Microsoft XPS Document Writer (MXDW) par défaut par le format Microsoft XPS (*.xps) hérité

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › Printers FR: Configuration ordinateur › Stratégies › Modèles d'administration › Imprimantes
Supported on
At least Windows Server 2012, Windows 8 or Windows RT FR: Au minimum Windows Server 2012, Windows 8 ou Windows RT
ADMX file
Printing.admx
Internal name
Printing/MXDWUseLegacyOutputFormatMSXPS

Explanation

Microsoft XPS Document Writer (MXDW) generates OpenXPS (*.oxps) files by default in Windows 10, Windows 10 and Windows Server 2025.

If you enable this group policy setting, the default MXDW output format is the legacy Microsoft XPS (*.xps).

If you disable or do not configure this policy setting, the default MXDW output format is OpenXPS (*.oxps).

French text from Windows 11 26H2

Microsoft XPS Document Writer (MXDW) génère par défaut des fichiers OpenXPS (*.oxps) dans Windows 10, Windows 10 et Windows Server 2025.

Si vous activez ce paramètre de stratégie de groupe, le format de sortie MXDW par défaut est l’ancienne version de Microsoft XPS (*.xps).

Si vous désactivez ou ne configurez pas ce paramètre de stratégie, le format de sortie MXDW par défaut est OpenXPS (*.oxps).

Registry

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\Printers
Value name
MXDWUseLegacyOutputFormatMSXPS
StateValue written
EnabledREG_DWORD = 1
DisabledREG_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/MXDWUseLegacyOutputFormatMSXPS
$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 'MXDWUseLegacyOutputFormatMSXPS' -Value 1 -Type DWord

Disable

# Disable: Printing/MXDWUseLegacyOutputFormatMSXPS
$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 'MXDWUseLegacyOutputFormatMSXPS' -Value 0 -Type DWord

Revert to "Not configured"

# Revert to "Not configured": Printing/MXDWUseLegacyOutputFormatMSXPS
$k = 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers'
Remove-ItemProperty -Path $k -Name 'MXDWUseLegacyOutputFormatMSXPS' -ErrorAction SilentlyContinue

Availability