You can recover the password by rebooting from a DVD (or from VMware-attached iso image in the case of a VM). The boot menu will give you the option to recover the administrator password.
http://www.cisco.com/c/en/us/td/docs/wireless/ncs/appliance/install/guide/primencs_qsg/primencs_qsgmain.html#wp1145812