He was named general-adjutant to the emperor in 1823, and infantry general in 1825. In the 1829 campaign against the Turks, General von Toll was chief of the general staff. For his role in the victory at Kulevicha he was granted the title of count by Tsar Nicholas I. During the Polish campaign of 1831, he served as chief of the general staff of Hans Karl von Diebitsch, and succeeded von Diebitsch upon his death. He took part in the siege of Warsaw by Paskevich in September 1831 and succeeded wounded Paskevich as a commander in chief during the final stages of the assault of the city. In 1833 he served on the state council as minister of transport, in which capacity he paid special attention to the Institute of Transport Engineers. He subsequently retired to his estate in the Governorate of Estonia.