I want to use the Delprinterconnection which is written in the UDF.
But when i use this script it seems to do nothing.

I have a Windows 2003 Ent.Ed. R2 X64 Server, Windows XP Sp2 Workstation and KiX2010 4.6.
The AddPrinterConnection does work fine but when i use the delprinterconnection in the UDF, the result in the console =0 but none of the printers are removed from the list.

The testuser has the right to delete regkeys and the gpo allows deletion of printers.

Please can anyone tell me how to solve this issue.