If users complain that their default printer keeps changing to "Microsoft Print to PDF" or another unwanted device after a reconnect, setting this value to 0 can help the session "remember" the correct assignment.
RemovePrintersatlogoff is a specific policy preference setting found within the Group Policy Management Console (GPMC). Its primary function is to automatically delete printer connections from a user’s profile when they log off the computer.
Find the setting: or use a Registry Preference to target the path mentioned in Method 1.
To manage this behavior, you must modify the registry on your RD Session Host or VDI server:
Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print\Printers" -Name "RemovePrintersAtLogoff" -Value 1 -Type DWord