In the war of Third Coalition (1805), he commanded a garrison in upper Styria. He was promoted to Major General. At the Battle of Raab, on 14 June, he was completely cut off, with 5,000 men and 10 guns, in the redoubts between the Rába and the Rabnitzbach rivers. In the following two days, he repelled repeated French attacks and even managed to take seven officers and 300 men as prisoner. On 16 June, he also freed a convoy of 36 Austrian officers and 500 men, when he ambushed their French captors at Kis-Szél. On 25 August 1809, he was awarded the Commander's Cross of the Military Order of Maria Theresa.