Thx,
this all gets worse as I am not very good in scripting anyway.
When I started I thought map some printers no problem and then I had to work out all kinds of stuff like how to determine in which subnet the user is ... Got that all running fine just cannot find I way to delete all printers first
At least I am getting now 'cannot find printer' which is better than the one error before.