After the armistice and the German Revolution in 1918, on 28 December the Rat der Volksbeauftragten, the provisional German government, appointed him commander-in-chief of the German military in Berlin and vicinity (Befehlshaber der Truppen in und um Berlin and Oberbefehlshaber in den Marken).
In this function, he directed the suppression of the Spartakus Uprising by the Freikorps in January 1919 under the orders of Minister of Defence Gustav Noske [REF].