In June 1807, Yermolov commanded horse artillery company in the actions at Guttstadt, Deppen, Heilsberg and Friedland, being awarded the Order of St. George (3rd class, 7 September 1807). He was promoted to major general on 28 March 1808 and was appointed inspector of horse artillery companies. In early 1809, he inspected artillery companies of the Army of the Danube. Although his division took part in the 1809 campaign against Austria, Yermolov commanded the reserves in Volhynia and Podolsk gubernias, where he remained for the next two years. In 1811, he took command of the guard artillery company and in 1812, became the Chief of Staff of the 1st Western Army. During the 1812 Campaign, Yermolov took part in the retreat to Smolensk and played an important role in the quarrel between Generals Barclay de Tolly and Bagration. He opposed Barclay's strategy and appealed to Emperor Alexander I to replace him with Bagration. After the Russian armies united on 2 August, Yermolov fought at Smolensk and Lubino (Valutina Gora) for which he was promoted to lieutenant general on 12 November 1812 with seniority dating from 16 August 1812. He distinguished himself at the Battle of Borodino, where he was lightly wounded leading a counterattack that recaptured the Great Redoubt. For his courage, Yermolov received the Order of St. Anna (1st class). During the rest of the campaign, he served as a duty officer in the headquarters of the main Russian army and fought at Maloyaroslavets. In October–November 1812, Yermolov served in the advance guard under Miloradovich and fought at Vyazma and Krasnyi. In late November, he commanded one of the detachments in the advance guard under General Rosen taking part in the combats on the Berezina. On 3 December 1812, he was recalled to the main headquarters where he became the Chief of Staff of the Russian army. Three weeks later, he was appointed commander of the artillery of the Russian armies. During the European campaigns of 1813 and 1814, Yermolov was in charge of the artillery corps of the allies. His able command proved crucial to their success in the Battle of Kulm. In 1813, Yermolov fought at Lützen, where he was accused of insubordination and transferred to command the 2nd Guard Division.