Applies to: Windows 8.1, Windows 8
The Windows 8.1 operating system introduces support for the international standard OpenXPS format in addition to the Microsoft XPS format. Windows provides a convenient way to create XPS documents by printing from any application to the Microsoft XPS Document Writer (MXDW). In the Windows 8 Consumer Preview, MXDW defaults to the new OpenXPS format. For users who frequently share Microsoft XPS documents with users that cannot read OpenXPS format, Windows 8.1 provides two methods for changing the default format of MXDW to the Microsoft XPS format.
In this article:
When printing from a desktop application, you can select XPS directly from the Save as type combo box. This does not change the system's default format.
To use this method, follow these steps:
This method can also be used to quickly convert XPS files from one type to another using these steps:
Metro style applications in Windows 8 automatically output to the default format defined by the printer in print-to-file scenarios. With the above desktop XPS Viewer method, users of Metro style applications can easily convert OpenXPS files to Microsoft XPS.
There are two methods to change the default format of MXDW between OpenXPS and Microsoft XPS:
Changing the default Microsoft XPS will have the following results:
Returning the default to OpenXPS will restore the system to the original behavior.
To use Group Policy to change the default format, take the following steps:
|Note: You may need to logoff/logon or force a Group Policy update from an administrator command prompt (gpupdate /force) before the change in policy will take effect.|
Windows PowerShell provides a powerful set of commands that allow the user to manage Windows 8.1. With Windows PowerShell, the user can change the same registry value for the MXDW default that is updated by Group Policy in the above procedure.
To use Windows PowerShell to change the default, follow these steps:
Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope Process -Force
if(!(test-path "hklm:\software\policies\Microsoft\Windows NT\Printers"))
New-Item -Path "hklm:\software\policies\Microsoft\Windows NT\Printers"
New-ItemProperty "hklm:\software\policies\Microsoft\Windows NT\Printers\" -Name "MXDWUseLegacyOutputFormatMSXPS" -Value 0 -PropertyType "DWORD" -ErrorAction SilentlyContinue
$KeyValue = (Get-ItemProperty -Path "hklm:\software\policies\Microsoft\Windows NT\Printers" -Name "MXDWUseLegacyOutputFormatMSXPS")."MXDWUseLegacyOutputFormatMSXPS"
Set-ItemProperty -Path "hklm:\software\policies\Microsoft\Windows NT\Printers" -Name "MXDWUseLegacyOutputFormatMSXPS" -Value 0
Set-ItemProperty -Path "hklm:\software\policies\Microsoft\Windows NT\Printers" -Name "MXDWUseLegacyOutputFormatMSXPS" -Value 1
|Note: You can download the script and run it from Windows PowerShell as shown below substituting the path on your system for the one in the example:|