Prevent Windows 10 from installing OneNote printer
OneNote printer is a nightmare for me. I removed it from Printers countless of times. It always comes back. Sometimes as a default printer, sometimes as a regular one. How can I get rid of it once and for good?
I have only found this seven years old answer, but it is for Office 2013 and Windows 7. I have Windows 10 and Office 365. I have opened GPO, but all the entries and menu items are completely different than in given answer.
21 Answer
After looking at your skill level @trejder , I rewrote this post.
First, the simple worry free way. I am not sure how long these changes will last. Perhaps permanent?
- Open your device manager
- Open "Print queues"
- One at a time, right click the OneNote entries and choose "Uninstall device"
Now, the "driver guy" way:
WARNING, don't be careless. You are playing with drivers
First, I am going to give a brief primer on how this all works.
- A driver author writes an inf to install their goodies. In this specific case, The OneNote installer installs a "print queue" driverish thingy from
C:\Program Files\Microsoft Office\root\Office16\OneNote\prnms006.inf - Windows copies this inf to c:\windows\inf and renames it with a name that starts with
oemand ends with a unique number likeoem25.inf. - There are also built in drivers that don't have unique inf files but are still part of your driver tree. (as you will see below). An instance of this might be something like a keyboard or usb flash drive.
- We are going to use the
pnputilcommand to make this all go away. First, we are going to use it to get a list of what is installed, then we will use it to clobber those entries.
Lets get started cleaning house! :)
You can assume that ALL of these commands are from an elevated command prompt.
- Go to
C:\Program Files\Microsoft Office\root\Office16and rename OneNote to _OneNote_ (its just the driver, not the app). This is to prevent office from kicking off the install again in the future and making a NEW oemXXX.inf. Of course an upgrade will put it back. :( - Run
pnputil /enum-drivers >%temp%\oem_drivers.txt - Run
pnputil /enum-devices >%temp%\drivers.txt - Open %temp%\oem_drivers.txt in your handy dandy text editor and search for
prnms006.inf. Note the name of the oemXX.inf file that it is coupled with. - Open %temp%\drivers.txt and search for OneNote. Note the all
Instance IDstrings.
NOW ITS CLOBBERIN' TIME!!
- run
pnputil /delete-driver /uninstall oemXXX.infwhere (of course) oemXXX.inf is the one you took down. - run
pnputil /delete-driver oemXXX.inf /forcewhere (of course) oemXXX.inf is the one you took down. This might give an error but we do it becuase I have had the first one fail to actually delete the driver package. - run
pnputil /remove-device INSTANCE_ID_STRING_HEREfor each OneNoteInstance IDfound in drivers.txt
You should be clean.
You should not require a reboot for this kind of driver.
This technique will for to force uninstall ANY kind of OEM driver (like realtek or HP thingamajiggers too!).
2