Removing Printers with PRINTUI.DLL
- This topic has 4 replies, 4 voices, and was last updated 9 years, 8 months ago by .
Viewing 1 post (of 1 total)
Viewing 1 post (of 1 total)
You must be logged in to reply to this topic.
Home › Forums › Scripting › General Scripting › Removing Printers with PRINTUI.DLL
Removing Printers with PRINTUI.DLL
I’m having a few issues trying to remove a printer with the PRINTUI.DLL command. I was asked to restrict access to a printer so I need to remove the printer form a few users accounts.
The printer its self is hosted on a Win 2003 Server and each time we have given users access in the past it’s been a case of browsing to the printer on the server, right clicking & choosing connect. This would then install the printer & download the printer driver locally to the XP computer.
The printer is shared as “2250n_colour” and its installed on server “sh-dmc1” to the full path would be:
[URL=”file://\sh-dmc12550n_colour”]\sh-dmc12550n_colour[/URL]
Im using the following script to remove the printer from a test machine:
rundll32 printui.dll,PrintUIEntry /gd /c\test-laptop /n\test-laptop2250n_colour
The error I see is “Unable to delete the per machine printer connection. Operation could not be completed.
Im running the command from dos on my PC, I have domain Admin rights
Any suggestions why this isn’t working?
It might be worth noting Ive been following the examples on this site:
You must be logged in to reply to this topic.
Find out more about our cookie policy here.