After the Peace of Lunéville Compans was appointed the governor of the province of Coni. In this province he operated against bandits but having been taken prisoner by them he was released without harm. Promoted to general de brigade in 1804, Compans was wounded at Austerlitz. He distinguished himself as chief of staff of Soult’s 4th Corps at the battle of Jena after which he was promoted to general de division. During Napoleon’s invasion of Russia Compans distinguished himself at Smolensk, Borodino and Maloyaroslavets. In the 1813 campaign Compans served with honor at Lützen, Bautzen and Leipzig, where he was wounded by bullets and saber cuts. Recovered he served in the 1814 campaign at La Fère-Champenoise.