Group policy script wont work

I am having trouble getting a script that sets default printer to run in group policy.

the script works wen run on its own and i tried adding it in startup under policies\computer configuration\windows configuration\scripts\startup

the script is

rundll32 printui.dll,PrintUIEntry /y /n \\server\printer

 

am i missing something.

You could use GPO to set it without the script.

http://technet.microsoft.com/en-us/library/cc722179(v=ws.10).aspx

You could also change it to just run on user login instead of having it be in group policy.  Simply add it to their account profile under login and it will install the printer.

http://technet.microsoft.com/en-us/library/cc779490(v=ws.10).aspx