Using Addprinter() as an example it looks like it might be that you need a space after the /n. You might consider using Shell instead. Maybe:

 Code:
shell 'rundll32 printui.dll,PrintUIEntry /y /n "\\printers\printer"'