I find myself needing to reset a bunch of Shoretel Shoreware gear for my job and needing to compile a bunch of different resources in order to get what I truly wanted. I wanted factory defaults and a 'zero'd out' configuration as well.
I did not have any dedicated voicemail switches in this configuration so take that into consideration when zeroing out your gear.
Start with your favorite telnet client, I use Putty.
Set your com to the appropriate com port and baud rate to 19200. No other settings in putty needed changed.
Connect your serial cable (or usb to serial adapter, something like this: https://amzn.to/387ki1W).
Power on the switch, or powercycle it.
As it boots up you will be looking for "Hit any key to stop autoboot: <countdown>"
Press any key to enter a command line, which will have => as your prompt.
To zero out the config enter these commands sequentially (or if you're lucky, copy and paste everything and it will all go in, I wasn't).
setenv flags 0x0
setenv ipaddr 10.0.0.1
setenv gatewayip 10.0.0.1
setenv netmask 255.0.0.0
setenv serverip 10.0.0.1
setenv host 10.0.0.1
setenv cntrlsrv 10.0.0.1
setenv autoload FLASH
setenv dns1 10.0.0.1
setenv dns2 10.0.0.2
bootc static flash vxworks
saveenv
reset
This sets all ip variables you can set as the login account, but much faster than navigating the menu, even copying and pasting each line.
Once it reboots, I check to make sure its valid by logging in with the following credentials:
User: anonymous
Password: ShoreTel
The password is case sensitive.
Then selecting 2 to make sure it shows the configuration set above.
That's it, if you're e-wasting these like we were, put them in a pile!
Sources (none of these had an exact copy and paste of the above, mine is slightly customized from all of 3 of these combined):
https://www.facebook.com/178036116151911/posts/how-to-factory-reset-a-shoretel-switch-sg-220t1aconnect-to-the-switch-via-a-seri/319857388636449/
https://info.lantelligence.com/technical-blog/2013/05/15/changing-shoretel-switch-configuration-via-serial-cable
https://www.shoretelforums.com/forum/shoretel-tech/administrators/72217-factory-reset-shoregear-90-and-t1k