Reset Cisco Switch to Default for Password Recovery

Connect the console cable to your PC
Lunch a terminal session to the com port
Hold the mode button on the from of the switch
Power on the switch
Release mode button once it boots
Press ctrl + pausebreak on the keyboard


Enter the following commands
Switch: flash_init
Switch:dir flash:
Switch:flash:config.text flash:config.backup
Switch:boot
Would you like to enter the inital configuration dialog? no
Switch > enable
SW1#renameflash:config.backup config.text
SW1#copy flash:config.text system:running-config
SW1#config terminal
SW1(config)#no enable secret.
SW1(config)#exit
SW1(config)#wr

Here is a link to a Spiceworks How-to that includes pictures and a downloadable PDF file.

http://community.spiceworks.com/how_to/show/47430-resetting-a-cisco-switch-to-default-password-recovery