In 1807, he served as aide-de-camp to Sir Harry Burrard during the Battle of Copenhagen. He was also present at the Battle of Vimeiro in 1808, was given a company in 1809, accompanied the Guards to Cadiz in 1810, and was engaged with that corps at Barrosa. He retired from the army in 1812; his rank of Major-General was in the army of Hanover, and was conferred upon him by King William IV.