On the test, I will use the D-Link DES-1210-28/ME Rev.B2 switch with firmware 6.07.B002.
Connect the console cable to the switched off switch.
Run the PuTTY program, select the serial, specify the speed 9600, click “Open”, a black window will open.
On Linux operating systems, you can use Minicom.
Connect the power to the switch, information about the switch should appear in the window, press Shift+6 several times until the restore menu appears.
When the menu appears, I executed the following commands:
1) View information about existing accounts:
2) Reset password for a specific account:
reset password NAME
3) An example of deleting all accounts:
4) Reset configuration to factory:
5) Reboot the switch:
When the switch reboots, if all accounts have been deleted, to the question of entering the login and password, just press “Enter”.