Setting admin password with netinstall configure script

Hi,
I’m trying to set up a default config in devices which includes setting an admin password.

I have an rsc file which was created using /export

I’ve added the line

/user set “admin” password=“mypassword”

to the rsc file.

I do an install using netinstall and all my other settings are applied, but the password is left blank.

What am I doing wrong?

/user set [/user find name=“admin”] password=“mypassword”

/user set [/user find name=“admin”] password=“mypassword”

This doesn’t seem to work. It works fine when logged into the device (SSH/Telnet), but not when a default config file being applied with netinstall.

Any other ideas?

Bump.

Has anyone done this as part of a netinstall configure script?

Hi. I can confirm that I have successfully used:

/user set admin password="password"

It was the last command in the script, if that makes any difference.

CD

Thanks, but was it as part of the default script loaded using netinstall - eg: the script is autorun when the router is reset to defaults?

I can get it to work in a script run at any time, but when part of the netinstall default configuration, the password is left blank