XPS Writer Not Installed or Available on Windows when Installing Quickbooks

A computer we received with a Dell image of Windows had the XPS writer disabled. Quickbooks failed to install the XPS writer which is a dependency. We had to run the following commands to enable the windows feature.

Disable-WindowsOptionalFeature -Online -FeatureName "Printing-XPSServices-Features"
Enable-WindowsOptionalFeature -Online -FeatureName "Printing-XPSServices-Features"