How to Enable XPS Viewer in Windows 11
In this article
XPS Viewer is disabled by default in modern versions of Windows, including Windows 11. To view .xps files, you must manually enable the optional feature through the Settings app. This process restores the legacy viewer without requiring third-party software or complex registry edits.
What You'll Need
- A Windows 11 PC with administrator privileges
- An active internet connection (required to download the feature package)
- The specific .xps file you wish to open
Step-by-Step
- Open Settings: Click the Start button and select the gear icon, or press Win + I on your keyboard to open the Windows Settings app.
- Navigate to Apps: In the left-hand sidebar, click on Apps. This section manages all installed programs and system features.
- Select Optional Features: Scroll down the main pane and click on Optional features. This page lists additional tools that can be added to your installation.
- Add a Feature: Click the blue link labeled + Add an optional feature near the top right of the window. A new dialog box will appear.
- Search for XPS: In the search bar at the top of the dialog, type XPS. Wait for the results to populate.
- Select XPS Viewer: Locate XPS Viewer in the list. Check the box next to it. If you see multiple entries, ensure you select the one specifically named "XPS Viewer" rather than just "XPS Services" unless you need both.
- Install: Click the Next button, followed by Install. Windows will now download and install the necessary components. This may take a few minutes depending on your internet speed.
- Verify Installation: Once the progress bar completes, click Close. The feature is now enabled.
Note: Menu labels and paths may differ slightly depending on your Windows 11 version or region settings. The steps above reflect the standard English interface in recent builds.
Common Mistakes
- Searching in the Microsoft Store: Users often try to find XPS Viewer in the Microsoft Store. It is not available there; it is a built-in Windows component managed via Settings > Optional Features.
- Confusing XPS with PDF: Do not attempt to install PDF readers to solve XPS issues. While some PDF viewers can convert XPS, they do not natively render the format without specific plugins.
- Ignoring Administrator Rights: If you are using a standard user account, you cannot add optional features. You must have administrative privileges to proceed.
- Assuming Instant Availability: After installation, the feature is ready immediately. There is no need to restart your computer unless the installer explicitly prompts you to do so.
Tips
- Set as Default App: To avoid right-clicking every time, go to Settings > Apps > Default apps. Search for ".xps" and assign XPS Viewer as the default handler.
- Use Edge as an Alternative: Microsoft Edge has native support for XPS files. You can simply drag and drop an .xps file into an open browser tab to view it without installing anything.
- Keep Windows Updated: Ensure your system is up to date. Older builds of Windows 11 may have bugs in the Optional Features manager that prevent successful installation.
- Check File Integrity: If the viewer opens but shows errors, the .xps file itself may be corrupted. Try opening it on another machine to verify.
Troubleshooting
If the XPS Viewer does not appear after following the steps above, or if it fails to open files, follow these checks in order:
1. Restart the Computer
Sometimes the installation completes silently but the service does not register until a reboot. Restart your PC and try opening an XPS file again.
2. Check Windows Update Status
Go to Settings > Windows Update. Run a manual check for updates. Sometimes the Optional Features package depends on pending system updates. Install any available updates and retry adding the feature.
3. Verify the Feature is Listed
Return to Settings > Apps > Optional features. Look at the "Installed features" list. If XPS Viewer appears here, it is successfully installed. If it is missing, the installation failed.
4. Use Command Line Installation
If the GUI fails, you can force the installation via PowerShell. Right-click the Start button and select Terminal (Admin) or PowerShell (Admin). Type the following command and press Enter:
Get-WindowsCapability -Name XPS.Viewer~~~~ | Add-WindowsCapability -Online
This method bypasses potential UI glitches. Wait for the process to finish.
5. Repair System Files
Corrupted system files can prevent optional features from installing. Open Terminal (Admin) and run:sfc /scannow
Wait for the scan to complete. If errors are found and repaired, restart your computer and try the installation again.
6. Clear Component Store Cache
In rare cases, the Windows component store is corrupted. Run this command in Admin Terminal:Dism /Online /Cleanup-Image /RestoreHealth
This repairs the image used for installing features. Note that this may take some time.