Remove all mapped printers from a specific printserver in powershell
I was working on a print-migration and needed to remove all mapped printers to the old print server on all clients. I made this script and placed it under login script in the same GPO as the new distributed printer GPO. This way then the new printers will be deployed for all users the old ones will automatically be removed.
Change the “\PRINT-SERVER” in the script to your print-server and the script will remove all mapped printers that contain that print-server path.