Thanks for the advice. I've been looking around and this seems to be closest post to what I want to achieve http://www.kixtart.org/forums/ubbthreads...rue#Post187369. But it's for changing print server and not printer names, so I hope someone can help me modifying the code?

Thanks in advance,
Ronnie