+ Post New Thread
Results 1 to 4 of 4
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 ...
  1. #1

    Join Date
    Nov 2005
    Location
    North
    Posts
    1,846
    Thank Post
    25
    Thanked 91 Times in 71 Posts
    Rep Power
    51

    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.

    Ta Muchly

  2. #2
    PEO
    PEO is offline
    PEO's Avatar
    Join Date
    Oct 2007
    Posts
    2,096
    Thank Post
    457
    Thanked 152 Times in 96 Posts
    Rep Power
    72
    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.

  3. #3
    Kyle's Avatar
    Join Date
    Jan 2006
    Posts
    983
    Thank Post
    92
    Thanked 14 Times in 13 Posts
    Rep Power
    21
    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.

  4. #4
    sahmeepee's Avatar
    Join Date
    Oct 2005
    Location
    Greater Manchester
    Posts
    795
    Thank Post
    20
    Thanked 70 Times in 42 Posts
    Rep Power
    34
    Have you had a look at the examples at the bottom of:

    Code:
    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.

    Code:
    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?

SHARE:
+ Post New Thread

Similar Threads

  1. Script to Delete Profiles - PLEASE HELP
    By Mr_M_Cox in forum Scripts
    Replies: 13
    Last Post: 22nd February 2013, 03:53 PM
  2. faster way to delete
    By mac_shinobi in forum Scripts
    Replies: 4
    Last Post: 14th December 2007, 08:51 AM
  3. delete printers
    By Jonny_sims in forum Scripts
    Replies: 11
    Last Post: 14th June 2007, 02:54 PM
  4. Replies: 7
    Last Post: 27th November 2005, 10:41 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •