I am using Java 8 on Windows 10.
How do I remove the “Отправить в OneNote 2010” (“Send to OneNote 2010”) virtual printer, so that the OS does not return it when my Java app queries available printers — specifically with javax.print.PrintServiceLookup#lookupDefaultPrintService? No printer is displayed in Control Panel – Devices and Printers, and yet that phony printer is still returned by the method. The goal is to see how my app behaves in such a scenario.
I tried unchecking all printer-related boxes in Control Panel – Apps – Turning on and of Windows components (I guess it’s what it’s called in the English locale).
Interestingly, none of these return anything in PowerShell.
PS C:Windowssystem32> Get-Printer | Where-Object { $.Name -like "OneNote" -or $.Name -like "Отправить в OneNote" }
PS C:Windowssystem32> Get-Printer | Where-Object { $_.Name -match '(?i)onenote|отправить в onenote' }
PS C:Windowssystem32> Get-CimInstance Win32_Printer | Where-Object { $_.Name -match '(?i)onenote|отправить в onenote' }
PS C:Windowssystem32> Get-ItemProperty 'HKCU:PrintersConnections*' 2>$null | Where-Object { $_.PSChildName -match '(?i)onenote|отправить в onenote' }
PS C:Windowssystem32> Get-ItemProperty 'HKCU:PrintersSettings*' 2>$null | Where-Object { $_.Device -match '(?i)onenote|отправить в onenote' }
PS C:Windowssystem32>
Similarly, PrintServiceLookup.lookupPrintServices(null, null) doesn’t return any elements in my program either.
In the registry, HKEY_CURRENT_USERSOFTWAREMicrosoftWindows NTCurrentVersionWindows contains a Device entry whose value is Отправить в OneNote 2010,winspool,nul:. Is that it? Should I remove it? Should I edit it somehow?
