Thanks for the reply.

I'm using the same name as the printer that I am adding.

I have included the code below, the sleep is to make sure that the printer is added, won't be in the real script.

AddPrinterConnection ("\\server1\HP9050")
AT (6,9) "Please wait"
Sleep 20
SETDEFAULTPRINTER ("\\server1\HP9050")
_________________________
"We ride together, We die together, Bad boys for life" - Will Smith "Don't run, you'll only die tired" "When did I realize I was God? Well, I was praying and I suddenly realized I was talking to myself" - Peter O'Toole. Remember; The Arc was built by amateurs but the Titanic was built by professionals.