In 1809 Napoleon remembered him and called him into his service. Brilliant, cultivated and perfectly aware of the uses of the Ancien Régime, "persona grata" with the main Courts of Europe, skilled diplomat and military, he was the ideal person to be at Napoleon's side. As such, he was reintegrated and re-entered the Army with his former post of Lieutenant General and appointed Governor of Raab, with the command of the whole part of Hungary occupied by the imperial troops. After the signed peace with Hungary, he was appointed Divisional General Commander of the 4th Military Division in Trieste. In that same year of 1809 he was sent to Vienna to arrange the marriage of the Emperor with Archduchess Marie Louise. In 1810 he was subsequently appointed Minister Plenipotentiary in Bavaria at Munich, next to King Maximilian I, whom he knew very well before the Revolution, and in 1811 "aide-de-camp" to Napoleon. He was created an Officer of the Legion of Honour and Grand Cross of the Order of Saint Hubert.