question

47451047 avatar image
0 Votes"
47451047 asked Jingruihan-MSFT answered

The number of printers is increasing

Hello. I have rds, windows server 2019. Each time you log into the server, the number of printers increases by 1.
Why is this happening and how can I fix it?

Printers mapping by GPO from print server.

100264-print.png


remote-desktop-serviceswindows-server-print
print.png (16.1 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Jingruihan-MSFT avatar image
0 Votes"
Jingruihan-MSFT answered Jingruihan-MSFT edited

Hi,

Let's follow the steps below.

First of all, please back up the problematic server and registry key.

https://support.microsoft.com/en-us/topic/how-to-back-up-and-restore-the-registry-in-windows-855140ad-e318-2a13-2829-d428a2ab0692

1.Manually remove all printers from the control panel.

2.Download PSExec and run the following script in PowerShell as administrator to remove existing obsolete entries: (place pstools in this path: C: \ temp \ PSTools \ Psexec.exe)

Start-Process -FilePath cmd.exe -Verb Runas -ArgumentList '/k C:\temp\PSTools\Psexec.exe -I -s powershell.exe'
Remove-Item -Path "HKLM:\SYSTEM\CurrentControlSet\Enum\SWD\PRINTENUM*" -Recurse
Remove-Item -Path "HKLM:\SYSTEM\CurrentControlSet\Control\DeviceClasses*" -Recurse
Remove-Item -Path "HKLM:\Software\Microsoft\Windows NT\CurrentVersion\Print\Providers\Client Side Rendering Print Provider*" -Recurse

PsExec v2.34
https://docs.microsoft.com/en-us/sysinternals/downloads/psexec

3.Configure the registry key and restart the terminal server 2019, finally we can check the result.
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print\Providers\Client Side Rendering Print Provider\RemovePrintersAtLogoff
Value = 0

4.Some Window Server 2019 Terminal Servers need to install the latest update to fix this issue.


If the answer is helpful, please click "Accept Answer" and upvote it.


Best regards

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Jingruihan-MSFT avatar image
0 Votes"
Jingruihan-MSFT answered Jingruihan-MSFT edited

Hi,

Please provide details about the printer deployment group policy configuration for windows server 2019.
Computer Configuration
computer Configuration\Policies\windows settings\deployed printers
computer Configuration\preferences\control panel settings\printers
User Configuration
user Configuration\Policies\windows settings\deployed printers
user Configuration\preferences\control panel settings\printers

Look forward your reply and have a great day!

Best Regards

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

cheong00 avatar image
0 Votes"
cheong00 answered cheong00 edited

I think possibly you hit the same underlying problem as this one so the remote desktop see it as different print target. See if his shared steps to fix that helps you too.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Jingruihan-MSFT avatar image
0 Votes"
Jingruihan-MSFT answered

Hi,

For better clarity and to assist you better I would require more information regarding this:

  • Please provide details about the printer deployment group policy configuration for windows server 2019.
    Computer Configuration
    computer Configuration\Policies\windows settings\deployed printers
    computer Configuration\preferences\control panel settings\printers

    User Configuration
    user Configuration\Policies\windows settings\deployed printers
    user Configuration\preferences\control panel settings\printers

  • Please provide the model of the printer.

Look forward your reply and have a great day!

Best Regards




5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

47451047 avatar image
0 Votes"
47451047 answered 47451047 edited

Hi.

  • Policy from print-server. For User.

  • KYOCERA

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

47451047 avatar image
0 Votes"
47451047 answered Jingruihan-MSFT commented

Thanks. It works. Other resources advise setting the value to 1. Why? Can you explain in more detail?

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi, thanks for accepted answer. Somehow, In some Citrix environments, the session host does not keep the default printer, so this value is set.

1 Vote 1 ·
47451047 avatar image
0 Votes"
47451047 answered

Hi. It was discovered that the default printer sometimes goes to Default Printer PDF. Does anyone know how to fix this

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Jingruihan-MSFT avatar image
0 Votes"
Jingruihan-MSFT answered

Hi, I will keep you updated with the progress.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.