After the 13th Vermont was mustered out, Peck joined the 17th Vermont as Adjutant with the rank of Major. He was commended for bravery at Wilderness, Cold Harbor, and Petersburg, and mustered out with the regiment in 1865.