Found the script useful, I have some usb printers, so changed it to reflect this. I also have a shared printer off my server which is a usb, so needed to set default printer to the first one detected.

I have one question, I would like to detect when the printer is active (Not greyed out) before setting to default. I have a number of laptops that connect to the network that may have numerious local printers setup.

How would this be detected?
_________________________
I want to share something with you - the three sentences that will get you through life.
Number 1, 'cover for me.'
Number 2, 'oh, good idea, boss.'
Number 3, 'it was like that when I got here'.