He was appointed Major General in 1702. During the War of the Spanish Succession he served under Villars in Germany, and was present at Blenheim in 1704. Promoted to Lieutenant General later the same year, he saw action at the Battle of Ramillies in 1706 and at Malplaquet in 1709. He accompanied James's son, James Frances Edward, to Scotland in both the failed 1708 landing attempt and the Jacobite rising of 1715.