Dundas was given command of the third-rate HMS "Stately", flagship of Rear Admiral Thomas Bertie, in the Baltic Fleet in March 1809. He took command of the third-rate HMS "Venerable" in January 1812 and then the frigate HMS "Pyramus" in September 1812 and in the latter ship captured two more privateers. He took command of the armed frigate HMS "Tagus" in the Mediterranean Fleet in August 1815 and then the first-rate HMS "Prince Regent", as flag captain to Admiral Sir William Parker who was commanding on the coast of Portugal, in 1830.