Script to Delete Old Mappings to Print Server with Share Name Like
OK here if my problem and it is one that I got myself into.... I am in the process of migrating our Windows 2008 printer cluster to 2008 R2 which host 600+ printers. All printers are deployed via GPP. So I updated each existing GPP for each printer to point to the new cluster and everything worked perfectly. I thought that it would change the current mapping to the new printer server. What it did is that is created another instance of the printer on the new cluster so now user's have duplicate mappings...
I know what you are thinking testing?? Well this is one item I over looked .
I know GPP can remove a printer but it needs the full UNC path name... I can do this for 600+ printer but this not very efficient.
Online I found a script someone wrote that deletes all printers that are connected to a printer serve which is great but I need to remove printer mappings in a more controlled fashions since some printers were removed.
I need a script that will delete all printers on a server with a share name that starts with .. Here's an example...
\\server\HP 43 or \\server\Room 123 H or \\server\123
All clients are Windows 7 I am not a scripting person so I turn to the experts for help