Windows Server
(1)
XP
(1)
GPPs
(1)
Iwant
(1)
DA4CE9B38B09
(1)
LABPHASER
(1)
Printers
(1)
Gpupdate
(1)

Cannot delete printers deployed with Group Policy Preferences

Asked By Andrew Zirkel
26-Jan-10 02:29 PM
I am 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 does not work.  I  do not see any GP errors
in the event viewer.

Thanks,
Andy Zirkel

Hi,Am 26.01.2010 20:29, schrieb Andrew Zirkel:Right. Expected behavior. That?

Mark Heitbrink [MVP] replied to Andrew Zirkel
26-Jan-10 02:38 PM
Hi,

Am 26.01.2010 20:29, schrieb Andrew Zirkel:

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


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

What should the order be?

Andrew Zirkel replied to Mark Heitbrink [MVP]
26-Jan-10 02:53 PM
What should the order be?  The delete entries are 3 and 4.  The printer
CB-LABPHASER does delete eventually, CB-LABB-W does not.  Here is the xml:


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>

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>

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>

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>

When I log on as a user I get both old printers and new printers (asshown in

Andrew Zirkel replied to Andrew Zirkel
26-Jan-10 03:25 PM
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
When I log on as the local administrator account the two printers that Iwant
Andrew Zirkel replied to Andrew Zirkel
27-Jan-10 12:54 PM
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
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
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
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
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
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
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
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
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 wrote:In case anyone is interested I was able to delete the
Andrew Zirkel replied to Andrew Zirkel
09-Mar-10 08:54 AM
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
Post Question To EggHeadCafe