I have a Server 2003 DC with about 80 XP Pro workstations at a client site. They recently purchased a new printer/copier to replace an older one. I was asked to help roll out the new copier and delete the old one on the XP workstations. The old one was setup with a direct IP connection on the XP stations and the new one is being shared as \\servername\printershare. I added the following to their login scripts and the addition of the new printer is successful but the deletion does not work when regular users log in.
rundll32 printui.dll PrintUIEntry /in /n\\SERVER\printername
wmic printer where "PortName LIKE 'IP_192.168.1.158%%'" delete
However when I login as an administrator or a user with admin rights this works perfectly - adds the new printer (first line) and deletes the old printer (second line) but when using a normal user (very little rights on the domain and on PCs as it is a classroom/training type location) the first line works and adds the printer but does not delete the old printer. I have checked the GP that is running and enabled the deletion of printers but that does not do it. I believe it is because the user does not have enough rights on the local machine to run WMIC but I am not sure.
I am looking for an easy/quick way to either give the necessary rights needed for WMIC on the local PCs to the users to do this without opening up other rights/issues or a replacement line in the login script to do the deletion of an IP based printer. Any help is appreciated.