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é
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).
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
| 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/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 DWordDisable
# 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 DWordRevert 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