In May 1944, Glagolev was transferred to command the 31st Army. He led the army during Operation Bagration and its Vitebsk–Orsha and Minsk Offensives. In October, the army fought in the Gumbinnen Operation. In January 1945, Glagolev became the commander of the 9th Guards Army, composed of airborne divisions converted to infantry. The army advanced into Hungary as part of the 2nd Ukrainian Front and then the 3rd Ukrainian Front. It fought in the Balaton Offensive, Vienna Offensive and the Prague Offensive.