Script to delete network printers from all user profile?

已答复 Script to delete network printers from all user profile?

  • Wednesday, March 06, 2013 8:58 PM
     
     
    I figured out a script to delete all the network printers from the current logged in user but I need a script that will delete all network printers from all user profiles. I have about 60 computers that this needs done to due to print que changes on the server. Does anyone have a script for this, or any ideas? Thanks

All Replies

  • Wednesday, March 06, 2013 9:16 PM
     
     Answered
    I figured out a script to delete all the network printers from the current logged in user but I need a script that will delete all network printers from all user profiles. I have about 60 computers that this needs done to due to print que changes on the server. Does anyone have a script for this, or any ideas? Thanks

    There is no such thing User profiel printeres can only be deleted in teh uiser session.  Add code to the logon script to delete all printers.

    If you are on WS2008 or later then use GP Preferences and Print Manager to manage this as it is easier and more flexible.

    If you wanted to yu could manually load every user profile and delete the registry keys assuming you know how to find all of teh profiles.

    It is highly unlikely that users mappings are causing your pront server issues.  DEleting th eprointers many make the symptom go away but it will not fix it.


    ¯\_(ツ)_/¯

  • Thursday, March 07, 2013 7:32 PM
     
     

    Are you changing the printer names or the server names?  I have a script that will add new printers to replace the old ones.  I need to know if you are changing the prinque names on the same server or changing to a new server.

  • Friday, March 08, 2013 2:03 AM
     
     
    names should be staying the same
  • Friday, March 08, 2013 2:33 PM
     
     

    I am confused about what you are doing.  As JRV stated you can only check\alter\delete printers from the logged on user.  The do not exist when the user is logged off.  My script is designed to cahnge the printers from one server to another or change the names of the printers on the same server.  It is designed to allow the users to run the script from a server to migrate printers.

    If your script already does that then you will have to get the users to run it.

  • Friday, March 08, 2013 2:42 PM
     
     

    If you have a Windows 2008 AD domain then you can use Group Policy and GP preferences to set up user printers or to remove all user printers.


    ¯\_(ツ)_/¯