Key Points
- XPS viewer is optional in Windows 10 and 11: Microsoft removed XPS Viewer as a default feature starting with Windows 10 version 1803 and continuing in Windows 11. It must now be installed manually through Windows Settings, PowerShell, or DISM.
- Manual installation via PowerShell or DISM: Use the command DISM /Online /Add-Capability /CapabilityName:XPS.Viewer~~~~0.0.1.0 to install XPS Viewer on later versions of Windows 10 and 11.
- Remove XPS Viewer to free system resources: Open Settings > Apps > Optional Features, then select XPS Viewer and click Uninstall. You can also remove it via PowerShell or DISM using the command DISM /Online /Remove-Capability /CapabilityName:XPS.Viewer~~~~0.0.1.0.
- Verify installation status and troubleshoot issues: Check if XPS Viewer is installed by searching for it in the Start menu or running DISM /Online /Get-Capabilities /Format:Table to confirm its status.
- Troubleshooting greyed-out or mission options: Take ownership of XPSViewer.exe with takeown /f C:\Windows\System32\XPSViewer.exe and grant admin rights to resolve blocked uninstall issues.
- Install only when needed: Use XPS Viewer only for viewing .xps files. Avoid unnecessary features to keep Windows lightweight and consider modern PDF or third-party viewers.
Microsoft no longer includes XPS Viewer by default since the Windows 10 April 2018 Update (version 1803). If you performed a clean installation of version 1803 or set up a new device with this version, you may need to manually install XPS Viewer. This remains to be the case for later Windows 10 and Windows 11 builds.
On the other hand, removing it can help free up system resources if it’s not needed.
But what is Windows XPS Viewer? It’s a built-in Windows tool for viewing and managing XPS files, similar to a PDF reader. Below, you can learn the step-by-step process of managing XPS Viewer in Windows 10.
💡 If you learn better by watching, this video’s for you: How to Add or Remove XPS Viewer App in Windows 10
How to add XPS Viewer in Windows 10 (a step-by-step guide)
NOTE: You must be signed as an Administrator to add XPS Viewer in Windows 10.
Method 1: Using Settings to add XPS Viewer in Windows 10
- Open Settings using the Windows search bar, then click Apps.
- Click Optional features > Add a feature.
- Scroll down and search for XPS Viewer.
- Tick the XPS Viewer checkbox, then click Install.
- After completing the process, restart your computer if necessary
Method 2: Using PowerShell to add XPS Viewer in Windows 10
- Right-click on the Windows icon or the Start menu.
- Click Windows Powershell (Admin) or Windows Terminal (Admin).
Now, PowerShell will require a command. What is the command for XPS Viewer?
- In the Powershell console, copy and paste or type in the following command:
DISM /Online /Add-Capability /CapabilityName:XPS.Viewer~~~~0.0.1.0
- Hit Enter, then wait for the process to be completed.
- Restart your computer if prompted.
- Open XPS Viewer by clicking the Windows icon or Start menu.
- Type XPS Viewer in the search bar, then hit Enter once found.
Method 3: Using DISM (Deployment Image Servicing and Management) to add XPS Viewer in Windows 10
- Click Command Prompt (Admin)
- Copy and paste or type in the following command:
DISM /Online /Add-Capability /CapabilityName:XPS.Viewer~~~~0.0.1.0
- Hit Enter, then wait for the process to be completed.
- Restart your computer if prompted.
- Access XPS Viewer by clicking the Windows icon or Start menu.
- Type XPS Viewer in the search bar, then hit Enter once found.
How to remove XPS Viewer in Windows 10 (a step-by-step guide)
NOTE: You must be signed as an Administrator to remove XPS Viewer in Windows 10.
Method 1: Using Settings to remove XPS Viewer in Windows 10
- Open Settings using Windows search bar, then click Apps on the left pane.
- On the right pane, select Optional features.
- Scroll down and search for XPS Viewer.
- Select XPS Viewer, then hit the Uninstall button.
Method 2: Using PowerShell to remove XPS Viewer in Windows 10
- Right-click on the Windows icon or Start menu.
- Open Powershell as administrators. Click Windows Powershell (Admin) or Windows Terminal (Admin).
- Copy and paste or type the following command: DISM /Online /Remove-Capability /CapabilityName:XPS.Viewer~~~~0.0.1.0
- Hit Enter, then wait for the process to be completed.
Method 3: Using DISM to remove XPS Viewer in Windows 10
- Right-click on the Windows icon or Start menu.
- Click Command Prompt (Admin).
- Copy and paste or type in the following command: DISM /Online /Remove-Capability /CapabilityName:XPS.Viewer~~~~0.0.1.0
- Hit Enter, then wait for the process to be completed.
Checking if XPS Viewer is installed
- Option 1: Open XPS Viewer using Windows search bar.
- Option 2: Using PowerShell or Command Prompt:
- Right-click the Windows Start menu. Select PowerShell (Admin) or Command Prompt (Admin).
- Type in the following command: DISM /Online /Get-Capabilities /Format:Table
- This will display a list of optional features and their status.
- Find XPS Viewer in the list and check their status:
- Installed → XPS Viewer is available.
- Not Present → XPS Viewer is not installed.
Troubleshooting XPS Viewer installation/removal issues
XPS Viewer missing from Optional Features
If XPS Viewer isn’t available as an optional feature, you can install it manually using PowerShell or DISM.
- Open PowerShell or Command Prompt as Administrator.
- Run the following command:
DISM /Online /Add-Capability /CapabilityName:XPS.Viewer~~~~0.0.1.0
XPS Viewer installation fails with error messages
Since XPS Viewer isn’t included by default in newer Windows 10 versions, checking for updates under Windows Update settings will ensure that your system supports XPS Viewer and can install it. You may also confirm if XPS Viewer is installable on your Windows by checking its availability under Optional Features.
XPS files not opening after installation
If XPS files aren’t opening after installing XPS Viewer, you can confirm if it’s installed correctly under Optional Features in settings.
Another solution on how to view XPS documents is by setting XPS Viewer as the default by right-clicking any XPS file, then clicking Open with > Choose another app > XPS Viewer and checking the Always use this app to open .xps files button.
XPS Viewer Uninstall option greyed out
If the XPS Viewer Uninstall option is greyed out in Settings, Windows could be blocking the action. You may take ownership of that uninstaller file by opening Command Prompt as an Administrator and assign permissions using the command line:
- takeown /f C:\Windows\System32\XPSViewer.exe
This will give file ownership to the current user. To grant full permissions to Administrators, run the following command:
- icacls C:\Windows\System32\XPSViewer.exe /grant administrators:F
After taking full ownership and setting permissions, you may uninstall XPS Viewer via PowerShell or DISM as instructed above.
Best practices for managing Windows Optional Features
Only install XPS Viewer when required to avoid unnecessary bloat
Since XPS Viewer is no longer pre-installed in newer Windows 10 versions, you may not install it if you don’t need it. Avoiding unnecessary installation can keep your Windows system lightweight.
Use Powershell/DISM for quicker XPS Viewer management
For faster management of Windows Optional Features like XPS Viewer, maximize PowerShell or DISM. These commands will ensure a more efficient installation and removal of XPS Viewer.
Manage software installations and removals with ease.
Consider using third-party PDF viewers
There are many modern third-party PDF viewers that you can use to view and manage XPS files. Exploring these options will remove the need to manually install Windows XPS Viewer, which can result in reduced system load.
Managing Microsoft XPS Viewer in Windows 10
Easily manage XPS Viewer through Settings via Optional Features. If that doesn’t work, PowerShell or DISM offer efficient alternatives by running commands. While XPS Viewer is now optional in newer Windows 10 versions, some users may still prefer it for XPS-specific features. Before installing, consider whether XPS Viewer is essential for your workflow or if a more versatile solution would better suit your needs.
