 After the war, he served as deputy ("Adlatus") to the commanding general in Slavonia.He inspected fortresses in Serbia and received promotion to Feldzeugmeister in 1807.In his last active command, he led a division of Hungarian insurrection militia at the Battle of Raab on 14 June 1809 during the War of the Fifth Coalition.