How to install XPS Viewer on your Windows 10 PC using PowerShell or CMD?

The possibility and ease that computers offer write, correct, sort and share written documents it is simply amazing and convenient, managing to generate a clean and error-free structure that can be handled by anyone in a format that can be modified to one's liking.

However, there are many ways to view the different types of documents, but a new creation that emerged based on Microsoft in 2008 was the XPS format, which aims to be a competition to the famous PDF format and tries to be a universal viewer of any type of document, which allows you to transform your documents into a printed format that cannot be edited



How to install XPS Viewer using DISM command?

If you are one of those who like to try new software or like to catch up with the new trends, you can try the XPS viewer that Microsoft offers and that we can easily install on our Windows system, for this we will only have to follow the following steps:

  • We will go to the taskbar of our desktop and we will write in the search bar CMD, then we will enter the command window that opens.
  • In this window we insert the following code: dism / online / Add-Capablity / CapablityName: XPS.Viewer ~~~~ 0.0.1.0
  • Then, we will press Enter.

Once this is done, the XPS viewer will be automatically installed in our operating system and we will be able to view, convert, edit or create any XPS document without the need for Microsoft Office.

How to install XPS Viewer on your Windows 10 PC using PowerShell or CMD?

What is the way to download XPS Viewer from Windows Update instead of WSUS?

In case we cannot install XPS from the Windows CMD, we also have the option to use the Windows Update service, which offers us another alternative that will allow us to install the XPS viewer on our computer, for which we will just have to follow the steps below:



  • We will press the button Windows together with R and we will enter the command gpedit.msc in the window that opens.
  • Then, we will proceed to go to Computer Configuration, log in to Administrative models and finally System.
  • In the panel that appears on the right, we will click on  Specify the settings for installation and repair of optional components.
  • We will change the status to enabled and check the box named Download repair content and optional features directly from Windows Update instead of Windows Server Update Services (WSUS).

How can I troubleshoot the installation of the XPS Viewer?

It may happen that, at the time of installation, various problems arise that make the installation of the XPS viewer impossible. While it is not common for these to manifest, here are some solutions you can try for ensure the installation of the XPS viewer on your computer:


Uninstall and reinstall Microsoft XPS Document Writer

If an installation error occurs, it is likely associated with a download error or a bug generated during installation, so you will need to uninstall the application and reapply some of the installation processes.

How to install XPS Viewer on your Windows 10 PC using PowerShell or CMD?

How to configure the XPS file once installed?

Once our XPS viewer is installed, we believe it would be necessary to make changes so that it suits our tastes, but being a viewer doesn't have great options to edit.


The main options that will allow us to access the program window will be to open an XPS file, create an XPS file, print an XPS file and index an XPS file and other features such as converting XPS files to Word that we can find better explained in Microsoft support.

add a comment of How to install XPS Viewer on your Windows 10 PC using PowerShell or CMD?
Comment sent successfully! We will review it in the next few hours.