Forum Discussion
Microsoft Print to PDF not working/missing.
The Microsoft Print to PDF was not working on my PC so I tried reenabling it via Windows Features in Optional Features and it won't turn back on. It gives error code: 0x800f0922. I also tried other various methods online and none work. All end with various error codes which all result in the service not working/turning on. I even filed feedback about 2 weeks ago with no response yet. I contacted support, where I was recommended to perform a repair via ISO but was then canceled by the agent as I am on an Insider build.
I am on build 26300.8687.
This is a summary of my diagnostic from Gemini which I had used to try to solve my issue.
Here is a summary of the diagnostic, tracking every command I executed in PowerShell and the specific roadblocks the Windows subsystem threw back.
The Add-Printer Layer
attempted to use modern PowerShell commands to register the printer onto both the interactive prompt port and the standard local file port.
Commands Ran:
PowerShell
Add-Printer -Name "Microsoft Print to PDF" -DriverName "Microsoft Print to PDF" -PortName "PORTPROMPT:"
Add-Printer -Name "Microsoft Print to PDF" -DriverName "Microsoft Print to PDF" -PortName "FILE:"
* **Errors Faced:**
* `ObjectNotFound: (MSFT_Printer:ROOT/StandardCimv2/MSFT_Printer)`
* `HRESULT 0x80070002,Add-Printer`
---
## 2. The Legacy PrintUI Layer
To bypass the modern PowerShell cmdlet, I tried using the legacy Windows user interface print engine via standard command prompt syntax and escaped quotes.
* **Commands Ran:**
```powershell
cmd /c "rundll32 printui.dll,PrintUIEntry /if /b `"Microsoft Print to PDF`" /r `"PORTPROMPT:`" /m `"Microsoft Print to PDF`""
rundll32 printui.dll,PrintUIEntry /if /b "Microsoft Print to PDF" /f "C:\Windows\System32\spool\DRIVERS\x64\3\prnms009.inf" /r "PORTPROMPT:" /m "Microsoft Print to PDF"
Errors Faced: A graphical dialog box error:
Operation could not be completed (error 0x00000002). The system cannot find the file specified.
The Deployment Script Layer (WMI/CScript)
I tried deploying the printer using Windows’ built-in visual basic administrative scripts to side-step the user interface layer completely.
Command Ran:
PowerShell
cscript $env:windir\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs -a -p "Microsoft Print to PDF" -m "Microsoft Print to PDF" -r "PORTPROMPT:"
* **Errors Faced:**
* `Unable to add printer Microsoft Print to PDF Error 0x80041002 Not found`
* `Operation PutInstance`
* `Provider Win32 Provider`
* `Description The system cannot find the file specified. Win32 error code 2`
Ultimately, every single command failed with an identical variation of **"File Not Found" (Error 2 / 0x80070002 / 0x80041002)**.
4 Replies
Please try this:
Open Turn Windows Features On or Off using search, disable Microsoft Print to PDF option,
Restart system, then turn on the feature again.
If issue persists, you can refer other suggestions in this fix:
Let us know if this helps!
- SamratBCopper Contributor
Which option do you mean by an in-place repair? If you mean a inplace upgrade repair, according to the https://learn.microsoft.com/en-us/windows-insider/flight-hub/, there is no ISO for my build yet.
- AmelagsBrass Contributor
Based on the search results, there are a few key paths to try, prioritizing an in-place repair since support suggested an ISO repair before stopping due to your Insider build.
- SamratBCopper Contributor
Please see this reply. I forgot to reply to you an indtead replied in general.
Microsoft Print to PDF not working/missing. | Microsoft Community Hub