 In 1802, he took service with Austria and became a French prisoner of war in 1809.Following a prisoner exchange, he then took part in the Battle of Aspern-Essling as a major in the Austrian army.In 1812, he became part of the general staff at the headquarters of Prince Schwarzenberg.