Windows Server 2000/2003 Thread, pushprinterconnections.exe in Technical; Hi.
I have a problem with removing deployed printers from an XP machine using group policy on 2008 server with ...
28th April 2009, 02:32 PM #1
- Rep Power
I have a problem with removing deployed printers from an XP machine using group policy on 2008 server with the pushprinterconnections utility.
Apparently, using the Server 2003 R2 version of it should fix my problem, according to the technet MS forums.
So could someone please send it me?
Its located in %windir%\system32
Thanks in advance!
IDG Tech News
28th April 2009, 02:37 PM #2
Interesting - I can send you a copy later this evening if you like, unless someone beats me to it! What problems are you having deploying to XP machines?
28th April 2009, 02:47 PM #3
- Rep Power
The printers deploy fine. Then when I remove the printers from the policy, update it and restart a couple times, the printers are still there. Then if you delete them manually and restart the computer they come back again.
According to this topic it could be down to the newer version of the utility.
28th April 2009, 03:35 PM #4
That is a little strange as you have to ask what exactly is creating the printers without pushprinterconnections.exe running at logon/startup?
I will send you the file later as promised
28th April 2009, 03:42 PM #5
What i found with push printer connections is that if you dont remove the printer from the deployed printers list before deleting the printer in the printer list, it will dstill deploy a blank printer in accordance to the policy (no drivers, no settings, doesnt print) that you cannot delete even as admin.
Edit - solution was to create a printer of the same name (even if its not same drivers etc..) then click "Deploy with Group Policy" and remove the printer from the list instead of adding the fake one.
edit2 - pm me your email addy and ill send you it zipped now.
Last edited by Psymon; 28th April 2009 at 03:44 PM.
Reason: my solution
28th April 2009, 04:01 PM #6
What about using 'User Config - Prefs - Control Panel Settings - Printers' to deploy them instead. It works really well and you can choose to set as default as well. Only thing is you need the client side extensions on the clients, but that's easy if you have WSUS. Particularly nice is the item-level targeting in it. If you want more info, just ask... I could probably run off a quick how-to as I've just changed over to this last week...
28th April 2009, 04:26 PM #7
- Rep Power
I was trying that originally, but the printers didn't get deployed. Then I found a post about using the pushprinterconnections.exe utility, so I followed the instructions for that and it worked straight off with several printers.
Originally Posted by Netman
Then I go to remove the printers and do it properly, but all the removed printers just come back every time I log back on or restart. Why can't things just work for a change!
28th April 2009, 07:01 PM #8
I am using KIX to deploy printers to students and staff at logon. I have an issue that I have not been able to resolve. The issue is that the network insists on adding a printer for all users which is not the printer I want for that room/user. I have put a command at the top of the KIX script for all users which deletes the 'random' printer. Now it adds another printer instead.
Staff/student user logs on in Room 1. They should get the Room 1 printer [which they do] but they also get the Room 96 printer. KIX for all users now deletes the Room 96 printer. Now when any user logs on in Room 1 they get the Room 40 printer. Add a command for all users to delete the Room 40 printer [which now may or may not work] and they then get another network printer [Room 2 perhaps] They DO get the printer I want them to get in the room they login but they also get A-N-Other printer I do not want them to be able to print to.
How can I prevent this?
What is happening?
29th April 2009, 12:37 PM #9
- Rep Power
Thanks for everyone's help.
After a good nights sleep and a bit more research I found that the cause of the problem was that when the printers are removed from group policy it wasn't updating the registry on the assigned machines due to an error. Apparently there is a hotfix on the MS website, but they only seem to have one for Vista and Server 2008, not XP.
So I came up with my own solution. I modified a vbscript on the technet website to to delete all the registry entries for the printers:
I then added the script to the group policy and set it to run before the push printers exe.
On Error Resume Next
Const HKEY_LOCAL_MACHINE = &H80000002
strComputer = "."
strKeyPath = "SYSTEM\CurrentControlSet\Control\Print\Connections"
Set objRegistry = GetObject("winmgmts:\\" & _
strComputer & "\root\default:StdRegProv")
DeleteSubkeys HKEY_LOCAL_MACHINE, strKeypath
Sub DeleteSubkeys(HKEY_LOCAL_MACHINE, strKeyPath)
objRegistry.EnumKey HKEY_LOCAL_MACHINE, strKeyPath, arrSubkeys
If IsArray(arrSubkeys) Then
For Each strSubkey In arrSubkeys
DeleteSubkeys HKEY_LOCAL_MACHINE, strKeyPath & "\" & strSubkey
objRegistry.DeleteKey HKEY_LOCAL_MACHINE, strKeyPath
I've tested it deploying the printer and that works fine. I've also removed the printer and the script does the job of removing it.
I'm not sure if that was the best solution to my problem, but at the end of the day, it works, so I'm happy again
23rd June 2009, 04:34 PM #10
Wow, that actually worked, a constant head ache gone at last.
9th August 2010, 06:15 PM #11
I am still having no luck with this even. I put the VBS script in right before pushprinterconnections.exe I put a question in with MS. This is driving me crazy. I was trying to make our printer deployment more compatible with Windows 7 and this is the headache I get.. lol..
12th August 2010, 09:17 AM #12
Pushprinterconnections is only needed for Windows XP, its not needed for Vista / 7.
Originally Posted by BryanDavidWilliams
You will have better success pushing the printers out with group policy using Windows Print Management console.
That way you avoid all the scripting.
The only script we have running is the default printers, everything else is group policy.
By E1uSiV3 in forum Windows
Last Post: 20th July 2013, 04:47 PM
By mrforgetful in forum Windows
Last Post: 26th August 2010, 09:15 PM
By sippo in forum Wireless Networks
Last Post: 29th September 2008, 10:37 AM
By ndavies in forum Network and Classroom Management
Last Post: 30th October 2007, 04:19 PM
By leon in forum MIS Systems
Last Post: 25th April 2007, 09:39 AM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)