Ouvrir dans l'explorateur

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

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

Type
Ordinateur
Chemin GPO
Configuration ordinateur › Stratégies › Modèles d'administration › Imprimantes EN : Computer Configuration › Policies › Administrative Templates › Printers
Pris en charge sur
Au minimum Windows Server 2012, Windows 8 ou Windows RT EN : At least Windows Server 2012, Windows 8 or Windows RT
Fichier ADMX
Printing.admx
Nom interne
Printing/MXDWUseLegacyOutputFormatMSXPS

Explication

Texte français issu de 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).

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).

Registre

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\Printers
Nom de la valeur
MXDWUseLegacyOutputFormatMSXPS
ÉtatValeur écrite
ActivéREG_DWORD = 1
DésactivéREG_DWORD = 0

PowerShell

Commandes PowerShell qui écrivent dans le registre ce que la stratégie écrirait. Les valeurs entre chevrons (<…>) sont à remplacer.

Écrire directement dans le registre contourne la stratégie de groupe : si une GPO gère cette valeur, elle sera réécrite au prochain gpupdate ; sinon la valeur reste en place (effet « tatouage »). Préférez une GPO ou, en local, LGPO.exe. Exécutez PowerShell en administrateur pour HKLM. Certaines stratégies demandent un redémarrage ou gpupdate /force.

Activer

# Activer : 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

Désactiver

# Désactiver : 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

Revenir à « Non configuré »

# Revenir à « Non configuré » : Printing/MXDWUseLegacyOutputFormatMSXPS
$k = 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers'
Remove-ItemProperty -Path $k -Name 'MXDWUseLegacyOutputFormatMSXPS' -ErrorAction SilentlyContinue

Disponibilité