Solved

Removing Network Printer with Script

Posted on 2013-11-21
4
384 Views
Last Modified: 2016-11-23
We are on Windows Domain with mostly Windows XP machines. We had a Dell Network Printer that was being shared on the server and it is listed on every machine. We recently replaced this printer and now we want to have it removed from being listed on every machine and under every profile on the machine. These worstations are located in a schools library so there are a lot of users that are still seeing the  old printer and attempting to print to it.

I had a script that does remove the printer and i thought it was supposed to do it for all users but it is only doing it for the user that is logged that runs the script.

Rundll32 printui.dll,PrintUIEntry /dn /q /n"\\sh_print\Dell Color Laser 5110cn PCL6"


Any help would be appreciated. Thanks
0
Comment
Question by:jdemoccc
  • 2
4 Comments
 
LVL 22

Expert Comment

by:Nick Rhode
ID: 39667226
I don't believe there is a script to remove the printer from all profiles as the printer is tied into the users session.  What is your server environment (2003, 2008?).  If 2008 you could use Group Policy Preferences to set and remove printers.
0
 
LVL 36

Expert Comment

by:Mahesh
ID: 39667414
0
 

Author Comment

by:jdemoccc
ID: 39669180
NRhode,

We are running a Server 2008 environment but we have not instituted group policy across the network completely. We have slowly been getting group policy working with the newer windows 7 machines but not with the old Windows Xp Machines. So group policy might not be the best policy has its only needs to be removed on about 20 or 30 machines from the library.
0
 
LVL 22

Accepted Solution

by:
Nick Rhode earned 300 total points
ID: 39669429
Just a quick note that in order for group policy from a 2008 server to work on an xp workstation you would need to install the optional update on the xp machine.  The group policy client side extension.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question