Skip to content
Winsides.com

Windows Insides

Winsides.com

Windows Insides

  • Windows 11
  • Windows Features
  • Windows Security
  • Microsoft
    • Microsoft Copilot
    • Microsoft Powertoys
  • Shortcuts
    • Windows Shortcuts
    • Desktop Shortcuts
  • Video Tutorials
  • About
    • What’s New?!
    • About us
    • Contact us
    • Privacy Policy
    • Terms of Use
  • Follow us
    • Reddit
    • Dev.to
    • YouTube
    • Linked In
    • X
    • Tumblr
    • Facebook
    • Instagram
    • Buy Me A Coffee
  • Windows 11
  • Windows Features
  • Windows Security
  • Microsoft
    • Microsoft Copilot
    • Microsoft Powertoys
  • Shortcuts
    • Windows Shortcuts
    • Desktop Shortcuts
  • Video Tutorials
  • About
    • What’s New?!
    • About us
    • Contact us
    • Privacy Policy
    • Terms of Use
  • Follow us
    • Reddit
    • Dev.to
    • YouTube
    • Linked In
    • X
    • Tumblr
    • Facebook
    • Instagram
    • Buy Me A Coffee
Close

Search

Winsides.com

Windows Insides

Winsides.com

Windows Insides

  • Windows 11
  • Windows Features
  • Windows Security
  • Microsoft
    • Microsoft Copilot
    • Microsoft Powertoys
  • Shortcuts
    • Windows Shortcuts
    • Desktop Shortcuts
  • Video Tutorials
  • About
    • What’s New?!
    • About us
    • Contact us
    • Privacy Policy
    • Terms of Use
  • Follow us
    • Reddit
    • Dev.to
    • YouTube
    • Linked In
    • X
    • Tumblr
    • Facebook
    • Instagram
    • Buy Me A Coffee
  • Windows 11
  • Windows Features
  • Windows Security
  • Microsoft
    • Microsoft Copilot
    • Microsoft Powertoys
  • Shortcuts
    • Windows Shortcuts
    • Desktop Shortcuts
  • Video Tutorials
  • About
    • What’s New?!
    • About us
    • Contact us
    • Privacy Policy
    • Terms of Use
  • Follow us
    • Reddit
    • Dev.to
    • YouTube
    • Linked In
    • X
    • Tumblr
    • Facebook
    • Instagram
    • Buy Me A Coffee
Close

Search

Home/Windows 11/CMD & PowerShell/Enable Microsoft XPS Document Writer using CMD & PowerShell

Enable Microsoft XPS Document Writer using CMD & PowerShell

Vigneshwaran Vijayakumar
By Vigneshwaran Vijayakumar
June 1, 2025 6 Min Read
0

Enable Microsoft XPS Document Writer using the Command Prompt and Windows PowerShell: There are different ways to enable optional features on Windows 11. We can use the Run Command to access the optional features, or we can follow the Control Panel options to access these features on Windows 11. However, all these methods involve the Graphical User Interface. What if you wanted a Command Line Interface to enable Microsoft XPS Document Writer on Windows 11? This article is all about that. Let’s get started.

Why do we need a Command Line Interface to enable this Feature on Windows 11?

Despite its availability in the GUI, Enterprise and Administrative Environments, where Automation, Bulk Deployments, and Remote Configuration, etc., are required, CLI offers a faster, scriptable, and consistent way. You can also log the output for auditing and compliance, which is impossible with the GUI. For conventional users, using a GUI can be effective, and for IT administrators, a command-line interface can be effective.

We are discussing how to enable Microsoft XPS Document Writer on Windows 11 using the CMD and Windows PowerShell. The following methods are suitable for both normal users and IT admins.

Microsoft XPS Document Writer Availability on Various Windows Editions

Windows EditionsAvailability
Windows ServersYes
Windows 11 HomeYes
Windows 11 ProfessionalYes
Windows 11 EducationYes
Windows 11 EnterpriseYes
Windows 11 Pro EducationYes
Windows 11 SENo
Windows 11 IoT EnterpriseYes

Quick Way to Enable Microsoft XPS Document Writer on Windows 11 using the Command Prompt

To enable Microsoft XPS Document Writer on Windows 11 using CMD, we will use the DISM Tool. Kindly follow the steps below.

  • DISM commands require elevated privileges for execution. Hence, we have to run the Command Prompt with Administrative Privileges. There are different ways to run CMD as Administrator on Windows 11. Here, we will use the Run Command.
  • Go to the Run Command using the keyboard shortcut WinKey + R.
  • In the Run Command, type the following command cmd and press CTRL + SHIFT + ENTER.
Type cmd and press ctrl + shift + enter
Type cmd and press Ctrl + Shift + Enter
  • Now, the User Account Control (UAC) will prompt for your confirmation to run the Command Prompt with elevated privileges. Click Yes to proceed further.
  • The Command Prompt will open with Elevated Privileges. In the CMD, execute the following command. dism /Online /Enable-Feature /FeatureName:"Printing-XPSServices-Features" /All /NoRestart
Execute the following command in the terminal
Execute the following command in the terminal
  • The Deployment Image Servicing and Management Tool enables Microsoft XPS Document Writer on your Windows 11. Once you receive the message “The operation completed successfully“, then Microsoft XPS Document Writer is enabled on your Windows 11.
Microsoft XPS Document Writer successfully enabled via the CMD
Microsoft XPS Document Writer was successfully enabled via the CMD

Decoding the Microsoft XPS Document Writer Enable Command using the CMD

Decoding the Microsoft XPS Document Writer Enable Command using the CMD
Decoding the Microsoft XPS Document Writer Enable Command using the CMD

How to check Microsoft XPS Document Writer Status using the Command Prompt?

If you are not sure whether this optional feature is enabled on your Windows 11, you can follow this section to get to know whether the Microsoft XPS Document Writer Feature is enabled or disabled on your Windows 11 system using the Command Prompt.

  • Make sure you are running the Command Prompt with Administrative Privileges.
  • In the Command Prompt, execute the following command. dism /Online /Get-Features /Format:Table | findstr "Printing-XPSServices-Features"
Check Status of Microsoft XPS Document Writer using the Command Prompt
Check the Status of Microsoft XPS Document Writer using the Command Prompt
  • The DISM will check the feature status and will provide the output. On my laptop, I have just enabled this feature, and hence, I get the status Enabled.

Enable Microsoft XPS Document Writer using Windows PowerShell

In this section, we will check out how to enable this optional feature using Windows PowerShell.

  • Open Windows PowerShell with Administrative Privileges. To do so, go to the Run Command using the WinKey + R keyboard shortcut.
  • In the Run, type the following command powershell, and press CTRL + SHIFT + ENTER.
Type powershell and press ctrl + shift + enter
Type powershell and press Ctrl + Shift + Enter
  • UAC will prompt for your confirmation, and then open Windows PowerShell with Elevated Privileges.
  • Once PowerShell opens, execute the following command. Enable-WindowsOptionalFeature -Online -FeatureName "Printing-XPSServices-Features" -All -NoRestart
Command to Enable Microsoft XPS Document Writer using Windows PowerShell
Command to Enable Microsoft XPS Document Writer using Windows PowerShell
  • PowerShell will now enable Microsoft XPS Document Writer on your Windows 11.
Microsoft XPS Document Writer Enabled using Windows PowerShell
Microsoft XPS Document Writer Enabled using Windows PowerShell
  • The RestartNeeded value is False, and that means a restart is not required for the changes made to the system.

Decoding Enable Microsoft XPS Document Writer using Windows PowerShell

Decoding the Microsoft XPS Document Writer Enable Command using Windows PowerShell
Decoding the Microsoft XPS Document Writer Enable Command using Windows PowerShell

How to Check Microsoft XPS Document Writer State in Windows PowerShell

Let’s say you want to check whether this feature is enabled on your Windows 11 or not, however, you don’t want to enable it rather just check the state of it.

  • To check the status (enabled or disabled) of this optional feature using Windows PowerShell, kindly execute the following command. Get-WindowsOptionalFeature -Online -FeatureName "Printing-XPSServices-Features"
Check Microsoft XPS Document Writer State using Windows PowerShell
Check Microsoft XPS Document Writer State using Windows PowerShell
  • Once we execute the above command, PowerShell will display the following information. Feature name, Display Name, Description about the Feature, State, and Custom Properties. The State field gives information on whether Microsoft XPS Document Writer is enabled or not.
Microsoft XPS Document Writer State using Windows PowerShell
Microsoft XPS Document Writer State using Windows PowerShell

Commands to Disable Microsoft XPS Document Writer on Windows 11 using CMD & Windows PowerShell

In the above sections of this article, we discussed enabling this feature using the Command Prompt and Windows PowerShell. In this section, we will check out the commands to disable Microsoft XPS Document Writer using Command Prompt, and Windows PowerShell.

  • Please make sure to run the CMD or Windows PowerShell with Administrative Privileges.
  • If you using the Command Prompt, kindly execute the following command in the CMD. dism /Online /Disable-Feature /FeatureName:"Printing-XPSServices-Features" /NoRestart
Command to Disable Microsoft XPS Document Writer using Command Prompt
Command to Disable Microsoft XPS Document Writer using Command Prompt
  • If you are using Windows PowerShell, run the following command on Windows PowerShell. Disable-WindowsOptionalFeature -Online -FeatureName "Printing-XPSServices-Features" -NoRestart
Command to Disable Microsoft XPS Document Writer using Windows PowerShell
Command to Disable Microsoft XPS Document Writer using Windows PowerShell

Take Away

While the option to enable Microsoft XPS Document Writer using GUI or CLI is completely up to the individual’s choice and their configuration, understanding these methods ensures precise control, and it can be really useful for IT Administrators for Deployment Scripts, Bulk Configurations, and Headless Systems.

Have Queries?

If you have any queries about the above article or if you find it difficult to follow the above steps, kindly let us know in the comments. For more interesting articles, stay tuned to Winsides.com. Happy Printing! Peace out!

Tags:

How to Enable in Windows 11windows 11
Vigneshwaran Vijayakumar
Author

Vigneshwaran Vijayakumar

Hello, I'm Vigneshwaran, the founder, owner, and author of WinSides.Com. With nearly a decade of experience in blogging across various domains and specializing in Windows-related tutorials for over five years, I bring a wealth of knowledge and expertise to WinSides.Com

Follow Me
Other Articles
Enable Microsoft Print to PDF using CMD & PowerShell
Previous

Enable Microsoft Print to PDF using CMD & PowerShell on Windows 11

Product Review - Stellar Converter for OST
Next

Stellar Converter for OST: Our Honest Review

No Comment! Be the first one.

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

  • Windows 10 officially ends on October 14, 2025
  • Enable Microsoft XPS Document Writer in Windows 11
  • How to Enable IIS [Internet Information Services] in Windows 11?
  • 3 Best Ways – Fix Account Unknown S-1-5-21 issue on Windows 11?
  • Download & Install Google App for Windows 11
  1. Vigneshwaran Vijayakumar
    Vigneshwaran Vijayakumar on How to Enable Windows PowerShell 2.0 in Windows 11?October 5, 2025

    Hello Mr. Mohamad El-Kheir, Thank you for contacting us. Microsoft has removed PowerShell version 2.0 completely from Windows 11 24H2…

  2. Avatar of Mohamad El-Kheir
    Mohamad El-Kheir on How to Enable Windows PowerShell 2.0 in Windows 11?October 5, 2025

    i have a MSI laptop with windows 11 Home Installed on it. how to install powershell v2.0 on it

  3. Vigneshwaran Vijayakumar
    Vigneshwaran Vijayakumar on DxDiag Windows 11 – What is it & How to use it for Troubleshooting?August 14, 2025

    Hey Myla Shannon Thank you for your valuable feedback. We are delighted to hear your compliment and excited to know…

  4. Avatar of Myla Shannon
    Myla Shannon on DxDiag Windows 11 – What is it & How to use it for Troubleshooting?August 14, 2025

    This content is incredibly informative.

  5. Avatar of seven
    seven on How to Enable IIS [Internet Information Services] in Windows 11?July 29, 2025

    I found this post very helpful.

  • About us
  • What’s New?!
  • Guest Posts on Winsides.com – Terms and Conditions
  • Publication Sitemap
  • Careers
  • Authors
  • Why Trust Winsides.com?
  • Content Removal Request
  • Terms of Use
  • Disclaimer
  • Contact us
Copyright 2024-2026 - Winsides.com. All rights reserved.