Windows Thread, Delete printers from Profiles in Technical; Got a pain in the arse problem wonder if someone could help me.
Our teachers have roaming profiles and I ...
15th January 2008, 05:41 PM #1
Delete printers from Profiles
Got a pain in the arse problem wonder if someone could help me.
Our teachers have roaming profiles and I use the RUNDLL32 PRINTUI.DLL,PrintUIEntry command to add printers.
Problem is I can't delete the suckers from their profiles.
i've tried using the RUNDLL32 PRINTUI.DLL,PrintUIEntry DL command and the DN command but the printer is "staffroom copier" and it doesn't like the space.
If I just try and delete the printer it says that the printer is no longer available on the server and won't delete.
I've deleted the queue, restarted the spooler, tried con2prt, but the thing won't delete. Obviously I want to script it so it deletes on everyones.
Anyone got any suggestions, I don't fancy deleting their profiles and starting again although I may be moving to mandatory at some stage.
15th January 2008, 05:48 PM #2
so you've deleted the printer off the server but it re-apears on the staff account when they log on to a machine? am i getting this right?
you all so say you haven't made the staff profiles .man which suggests to me you need to load the .dat hive and search for the printer. then you can delete the printer from the .dat profile.
15th January 2008, 06:20 PM #3
I uses a script to add the printers as well, but i also use a uninstall script to get them off. They too have roaming profiles, it does not matter if they are deleted off the server first the printer still appears in the printers folder saying 'unable to connect'
As long as i put the correct path in the script ( even though it has been deleted beforehand) the eprint will uninstall.
Only draw back is it has to be done manully and while they are on the network.
Let me kow if you want a copy.
15th January 2008, 06:29 PM #4
Have you had a look at the examples at the bottom of:
Obviously there aren't any for removing network printer connections - that would be too easy - but it does have examples of using double quotes to handle spaces. Assuming you're using /dn /n , try doing it with and without a space between the /n and the start of the doublequote, e.g.
RUNDLL32 PRINTUI.DLL,PrintUIEntry /?
I've also heard of the command having some case-sensitive elements to it, which is nice.
RUNDLL32 PRINTUI.DLL,PrintUIEntry /dn /n"\\server\my annoying printer"
RUNDLL32 PRINTUI.DLL,PrintUIEntry /dn /n "\\server\my annoying printer"
What command have you been running exactly?
Are you sure the printer was originally added via printui.dll?
By Mr_M_Cox in forum Scripts
Last Post: 22nd February 2013, 03:53 PM
By mac_shinobi in forum Scripts
Last Post: 14th December 2007, 08:51 AM
By Jonny_sims in forum Scripts
Last Post: 14th June 2007, 02:54 PM
By woody in forum Scripts
Last Post: 27th November 2005, 10:41 PM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)