System Password

I’d like to load a script with netinstall that includes adding a system password. I haven’t been able to get this to work.
If the current password is test and I want to change to test2, I can cut and paste into a telnet window:
password
test
test2
test2

..and it works. But if I try the same thing with a script. It fails.
Any ideas?

Thanks,
Mike

as i understand you are trying to set password for admin user, that is on the router by default.

do do that using the script add this line to that:

/user set admin password="thePassword"

that will add password to admin user without any re-entries required.