Jump to content

Recommended Posts

Posted

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.

 

Ta Muchly

Posted

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.

Posted

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.

Posted

Have you had a look at the examples at the bottom of:

 

RUNDLL32 PRINTUI.DLL,PrintUIEntry /?

 

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 /dn /n"\\server\my annoying printer"
RUNDLL32 PRINTUI.DLL,PrintUIEntry /dn /n "\\server\my annoying printer"

 

I've also heard of the command having some case-sensitive elements to it, which is nice.

 

What command have you been running exactly?

Are you sure the printer was originally added via printui.dll?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...