Eliminate Invalid redirected printers that may be available in a Remote Desktop Services session that connects to a RD Session Host server
A hotfix was created by Microsoft to prevent further leaked redirected printers from accumulating in the registry. https://support.microsoft.com/en-us/kb/2620656
Unfortunately, according to the script provided in that KB article the hotfix only deals with the redirected printers that have "session" in the name. The issue is that Microsoft changed this a long time ago to now have "redirected" in the name instead as well as the format of the name being different.
This means that the redirected printers with the new name format are still being leaked in the registry causing the same issue. Note that this is also proven simply by reviewing the affected registry keys after logging in and out a few times.
Note that although the KB article applies to Windows 7, Windows Server 2008 R2, Windows Vista, and Windows Server 2008, it still happens in Windows Server 2012 and Windows Server 2012 R2 and likely also in Windows 8 through Windows 10.
Please stop the leaked printer names to eliminate the problem with many software products out there.
Just change the provided script to search for "redirected" instead of "session":
--> if (inStr(device,"redirected")) then
(needs tio be replaced twice!)
It's september 2017 now and I still have this problem on Windows Server 2012. No hotfix or anything available.