I knew this rang a bell..
/blogs/dan_patterson/2019/08/08/free-tools-polygons-to-lines-or-segments
I wrote "4 split at vertices" in this toolset in the conversion section. The GitHub link is at the bottom of the page.
Just make a folder (no space in the path), copy/download the files to that folder, add the toolbox in that folder and give the 4th conversion.
Basically what it does is blows up polyline and polygon features into from-to x,y pairs, assigns an id to the resultant features and creates a segmented polyline.
It replicates most parts, plus some, of the not-so-free Advanced tool
Feature To Line—Data Management toolbox | ArcGIS Desktop