Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Cannot delete printers deployed with Group Policy Preferences

677 views
Skip to first unread message

Andrew Zirkel

unread,
Jan 26, 2010, 2:29:38 PM1/26/10
to

I'm deploying printers with Group Policy preferences to XP sp2 computers
using KB943729 client side extensions. I deleted the deployed
printers from the policy and they did not delete from the client.
Adding a delete printer record doesn't work. I don't see any GP errors
in the event viewer.

Thanks,
Andy Zirkel

Mark Heitbrink [MVP]

unread,
Jan 26, 2010, 2:38:24 PM1/26/10
to
Hi,

Am 26.01.2010 20:29, schrieb Andrew Zirkel:
> Im deploying printers with Group Policy preferences to XP sp2 computers


> using KB943729 client side extensions. I deleted the deployed printers
> from the policy and they did not delete from the client.

Right. Expected behavior. That�s why GPPs are PREFERENCES and NOT!
Policies.

> Adding a delete printer record doesn't work.

First guess: Wrong sort order or wrong item level targeting
Adding a "delete" is what you need to do, to revert your settings.

Mark
--
Mark Heitbrink - MVP Windows Server - Group Policy

Homepage: www.gruppenrichtlinien.de - deutsch
Discuss : www.freelists.org/list/gpupdate

Andrew Zirkel

unread,
Jan 26, 2010, 2:53:04 PM1/26/10
to
What should the order be? The delete entries are 3 and 4. The printer
CB-LABPHASER does delete eventually, CB-LABB-W doesn't. Here is the xml:

<?xml version="1.0" encoding="utf-8"?>

<Printers clsid="{1F577D12-3D1B-471e-A1B7-060317597B9C}"
disabled="0"><SharedPrinter
clsid="{9A5E9697-9095-436d-A0EE-4D128FDFBCE5}" name="cb-lab"
status="cb-lab" image="1" bypassErrors="1" changed="2009-12-21 20:35:07"
uid="{58B95545-809C-43C8-B562-AD2FB8E74C93}"
removePolicy="1"><Properties action="R" comment="" path="\\print\cb-lab"
location="" default="1" skipLocal="0" deleteAll="0" persistent="0"
deleteMaps="0" port=""/></SharedPrinter>

<SharedPrinter clsid="{9A5E9697-9095-436d-A0EE-4D128FDFBCE5}"
name="cb-lab-color" status="cb-lab-color" image="1" changed="2009-12-21
18:44:45" uid="{7F839BAC-BEE8-4C84-BEF8-D5D0E3CC34A4}" removePolicy="1"
bypassErrors="1"><Properties action="R" comment=""
path="\\print\cb-lab-color" location="" default="0" skipLocal="0"
deleteAll="0" persistent="0" deleteMaps="0" port=""/></SharedPrinter>

<SharedPrinter clsid="{9A5E9697-9095-436d-A0EE-4D128FDFBCE5}"
name="CB-LABB-W" status="CB-LABB-W" image="3" changed="2010-01-25
20:49:08" uid="{AAEF02E5-B827-47DC-8C2F-FBB5BED8CA9A}" userContext="1"
bypassErrors="1"><Properties action="D" comment=""
path="\\print\CB-LABB-W" location="" default="0" skipLocal="0"
deleteAll="0" persistent="0" deleteMaps="0"
port=""/><Filters/></SharedPrinter>

<SharedPrinter clsid="{9A5E9697-9095-436d-A0EE-4D128FDFBCE5}"
name="CB-LABPHASER" status="CB-LABPHASER" image="3" changed="2010-01-25
20:47:11" uid="{79D6A872-7E8E-409E-A260-90D4F9C003D4}" userContext="1"
bypassErrors="1"><Properties action="D" comment=""
path="\\print\CB-LABPHASER" location="" default="0" skipLocal="0"
deleteAll="0" persistent="0" deleteMaps="0"
port=""/><Filters/></SharedPrinter>

</Printers>

Andrew Zirkel

unread,
Jan 26, 2010, 3:25:16 PM1/26/10
to

When I log on as a user I get both old printers and new printers (as
shown in the xml bellow). When I run gpupdate the CB-LABPHASER printer
is deleted but the CB-LABB-W remains.

Is there a cache of these settings on the local machine that I can delete?

thanks,
Andy Zirkel

Andrew Zirkel

unread,
Jan 27, 2010, 12:54:12 PM1/27/10
to
When I log on as the local administrator account the two printers that I
want to delete are there. If I delete them then log off and back on as
the local administrator account they come back.

I enabled logging on the policy. Here, I think, is the relevant section
of the trace log. Nothing stands out to me.

2010-01-27 09:46:41.985 [pid=0x4f4,tid=0x384] Handle Children.
2010-01-27 09:46:41.985 [pid=0x4f4,tid=0x384]
{9A5E9697-9095-436d-A0EE-4D128FDFBCE5}
2010-01-27 09:46:41.985 [pid=0x4f4,tid=0x384] Starting class
<SharedPrinter> - cb-lab.
2010-01-27 09:46:41.985 [pid=0x4f4,tid=0x384] Set user security context.
2010-01-27 09:46:42.157 [pid=0x4f4,tid=0x384] Properties handled.
2010-01-27 09:46:42.157 [pid=0x4f4,tid=0x384] Handle Children.
2010-01-27 09:46:42.157 [pid=0x4f4,tid=0x384] Set system security context.
2010-01-27 09:46:42.172 [pid=0x4f4,tid=0x384] EVENT : The user 'cb-lab'
preference item in the 'CBCartA {1BF519FF-66FE-4C4B-B6D6-DA4CE9B38B09}'
Group Policy object applied successfully.
2010-01-27 09:46:42.172 [pid=0x4f4,tid=0x384] Completed class
<SharedPrinter> - cb-lab.
2010-01-27 09:46:42.172 [pid=0x4f4,tid=0x384]
{9A5E9697-9095-436d-A0EE-4D128FDFBCE5}
2010-01-27 09:46:42.172 [pid=0x4f4,tid=0x384] Starting class
<SharedPrinter> - cb-lab-color.
2010-01-27 09:46:42.172 [pid=0x4f4,tid=0x384] Set user security context.
2010-01-27 09:46:42.422 [pid=0x4f4,tid=0x384] Properties handled.
2010-01-27 09:46:42.422 [pid=0x4f4,tid=0x384] Handle Children.
2010-01-27 09:46:42.422 [pid=0x4f4,tid=0x384] Set system security context.
2010-01-27 09:46:42.422 [pid=0x4f4,tid=0x384] EVENT : The user
'cb-lab-color' preference item in the 'CBCartA
{1BF519FF-66FE-4C4B-B6D6-DA4CE9B38B09}' Group Policy object applied
successfully.
2010-01-27 09:46:42.422 [pid=0x4f4,tid=0x384] Completed class
<SharedPrinter> - cb-lab-color.
2010-01-27 09:46:42.422 [pid=0x4f4,tid=0x384]
{9A5E9697-9095-436d-A0EE-4D128FDFBCE5}
2010-01-27 09:46:42.422 [pid=0x4f4,tid=0x384] Starting class
<SharedPrinter> - CB-LABPHASER.
2010-01-27 09:46:42.437 [pid=0x4f4,tid=0x384] Set user security context.
2010-01-27 09:46:42.515 [pid=0x4f4,tid=0x384] Set system security context.
2010-01-27 09:46:42.515 [pid=0x4f4,tid=0x384] Properties handled.
2010-01-27 09:46:42.515 [pid=0x4f4,tid=0x384] Handle Children.
2010-01-27 09:46:42.515 [pid=0x4f4,tid=0x384] EVENT : The user
'CB-LABPHASER' preference item in the 'CBCartA
{1BF519FF-66FE-4C4B-B6D6-DA4CE9B38B09}' Group Policy object applied
successfully.
2010-01-27 09:46:42.515 [pid=0x4f4,tid=0x384] Completed class
<SharedPrinter> - CB-LABPHASER.
2010-01-27 09:46:42.515 [pid=0x4f4,tid=0x384]
{9A5E9697-9095-436d-A0EE-4D128FDFBCE5}
2010-01-27 09:46:42.515 [pid=0x4f4,tid=0x384] Starting class
<SharedPrinter> - CB-LABB-W.
2010-01-27 09:46:42.531 [pid=0x4f4,tid=0x384] Set user security context.
2010-01-27 09:46:42.593 [pid=0x4f4,tid=0x384] Set system security context.
2010-01-27 09:46:42.593 [pid=0x4f4,tid=0x384] Properties handled.
2010-01-27 09:46:42.609 [pid=0x4f4,tid=0x384] Handle Children.
2010-01-27 09:46:42.609 [pid=0x4f4,tid=0x384] EVENT : The user
'CB-LABB-W' preference item in the 'CBCartA
{1BF519FF-66FE-4C4B-B6D6-DA4CE9B38B09}' Group Policy object applied
successfully.
2010-01-27 09:46:42.609 [pid=0x4f4,tid=0x384] Completed class
<SharedPrinter> - CB-LABB-W.
2010-01-27 09:46:42.609 [pid=0x4f4,tid=0x384] Completed class <Printers>.
2010-01-27 09:46:42.609 [pid=0x4f4,tid=0x384] Completed package execution.
2010-01-27 09:46:42.609 [pid=0x4f4,tid=0x384] Completed execution of
apply package.
2010-01-27 09:46:42.609 [pid=0x4f4,tid=0x384] GPH data file :
C:\Documents and Settings\All Users\Application Data\Microsoft\Group
Policy\History\{1BF519FF-66FE-4C4B-B6D6-DA4CE9B38B09}\S-1-5-21-527237240-1229272821-682003330-14966\Preferences\Printers\Printers.xml
2010-01-27 09:46:42.624 [pid=0x4f4,tid=0x384] Updated GPH.
2010-01-27 09:46:42.624 [pid=0x4f4,tid=0x384] Completed apply GPO.

Andrew Zirkel

unread,
Mar 9, 2010, 8:54:58 AM3/9/10
to
In case anyone is interested I was able to delete the persistent
printers with the following command:

reg delete
HKLM\SYSTEM\CurrentControlSet\Control\Print\Connections\,,SERVER,PRINTER /f

Where SERVER is your print server and PRINTER is the printer definition.

Thanks,
Andy Zirkel

0 new messages