I used the following command to find the feature name and the second one (Powershell) to disable Microsoft Print to PDF, and the third one to re-enable it.
DISM /online /get-features /format:table | find "Disabled"
Disable-WindowsOptionalFeature -Online -FeatureName "Microsoft-Windows-Printing-PrintToPDFServices-Package"
Enable-WindowsOptionalFeature -Online -FeatureName "Microsoft-Windows-Printing-PrintToPDFServices-Package"
The disable command works perfectly, however, I get the following message when trying to enable it.
"enable-windowsoptionalfeature : One of several parent features are disabled so current feature can not be enabled." (See Screenshot)
Secondly, I try to enable the feature through "Turn Windows features On or Off" but it can't be found. (See screenshot)
I have researched this for several hours now and the only information I can find is how to add the printer back through Programs and Features. I would appreciate all help resolving this problem.