Good Morning Guys

I am writing a script to install printers when a user logs on (if they don't exist). However I also want to set a default printer, i've looked for the code and I think its:
SETDEFAULTPRINTER ("\\server1\HPlaserjet")


However this doesn't work. Not sure why.
_________________________
"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.