Some use full commands:
Use save command to save configuration.
load factory-default command to reset configuration of the system. Remember to do before commit this:
configure
set system root-authentication plain-text-password
(enter the new password when asked)
commit
also reboot to make sure that system name got changed (request system reboot).