On 16 January 1942, Lindemann took the command of the 18th Army, a part of Army Group North. In the summer of 1942, he was promoted to Generaloberst. Lindemann commanded the 18th Army throughout the campaigns around Leningrad and during the January 1944 retreat from the Oranienbaum Bridgehead to Narva. He was promoted to command of Army Group North on 31 March 1944. On 4 July 1944, he was relieved and transferred to the Reserve Army. On 1 February 1945, he was appointed to the command of all German troops in Denmark as the "Supreme Commander of the Armed Forces in Denmark". Germany surrendered unconditionally in northwest Germany, the Netherlands, and Denmark on 5 May 1945. Lindemann was then given the task of dismantling the German occupation of Denmark until 6 June 1945, when he was arrested at his headquarters in Silkeborg. He was held in American custody until 1948. Lindemann died in 1963 in Freudenstadt, West Germany.