Powershell-Tricks/Unifi-password-reset.md

850 B

  1. download the MongoDB from here.

  2. Create a folder on the C drive ( passwordrecover )

  3. Extract mongo.exe from the bin folder into the newly created C:\passwordrecover folder

  4. WINDOWS + R and type cmd ( ENTER )

  5. Go to the folder you just created

cd C:/passwordrecover
  1. Run the following commands, those commands will prompt you with all the admin account.
mongo --port 27117
use ace
db.admin.find()
  1. Now run the next command and replace with the admin account.
db.admin.update( { "name" : "<UserName>" }, { $set : { "x_shadow" : "$6$ybLXKYjTNj9vv$dgGRjoXYFkw33OFZtBsp1flbCpoFQR7ac8O0FrZixHG.sw2AQmA5PuUbQC/e5.Zu.f7pGuF7qBKAfT/JRZFk8/" } } )
  1. You can now login with your admin account and password password