Bernadotte, with Davout's III Corps attached to his command, and the Bavarians, gained a victory over the Austrians driving them out of Munich on October 12, taking some 3000 prisoners and 19 guns and installing Maximillian Joseph back onto his throne. I Corps then co-operated in the great movement which resulted in the shutting off of Mack in the Battle of Ulm. Bernadotte's troops then captured Salzburg on 30 October.