Appointed chief of a post of the 31st Border Squadron of the
Cheka Troops at
Kushka in December 1920, Baranov was seconded to study at the Turkestan Front Riders' Cavalry School in October 1921, and after graduation in August 1922 transferred to the 15th
Alma-Ata Cavalry Courses in
Tashkent. With a consolidated cadet detachment, Baranov fought in the suppression of Basmachi in Western and Eastern
Bukhara. After another transfer in December to the 4th Combined Military School in Tashkent, he fought against Basmachi in Ablyksky District between May and November 1923. Expelled from the school on 28 December 1924, Baranov was sent to the 7th Turkestan Cavalry Brigade in
Baysun, where he was appointed an assistant platoon commander in the 79th Cavalry Regiment. After leading a flying detachment of the regiment against the Basmachi of
Ibrahim Bek, Baranov was transferred in July 1926 to the 81st Cavalry Regiment at
Termez, where he became a political instructor in the regimental supply detachment after joining the
Communist Party. During this period, he was seconded to the 83rd Cavalry Regiment to fight against the Basmachi of
Junaid Khan in the
Karakum Desert between August and December 1927, then between April and June 1928 returned to the 81st Cavalry Regiment to fight against the Basmachi of Utan Bek, and between March and May 1929 commanded a squadron of the 82nd Cavalry Regiment against the Basmachi of
Faizal Maksum. For his "courage in battle" against the Basmachi, Baranov was awarded the
Order of the Red Banner on 1 August 1929. Studying at the
Novocherkassk Cavalry Commanders' Improvement Courses from 9 November 1929, Baranov returned to the 81st Regiment after completing them on 1 June 1930. With the regiment, he served as a squadron political officer and squadron commander in renewed fighting against Basmachi in Tajikistan, Uzbekistan, and Turkmenistan. Appointed chief of the regimental school of the Tajik Cavalry Regiment in July 1932, Baranov later became regimental chief of staff. Sent to study at the
Frunze Military Academy in June 1934, after graduation he became chief of the 1st section of the staff of the
18th Turkmen Mountain Cavalry Division in December 1937. Serving as acting commander of the 27th Turkmen Mountain Cavalry Regiment from March 1938, Baranov, then a major, was appointed assistant commander of the
3rd Cavalry Division of the
Kiev Special Military District in
Zholkev. He became commander of the
5th Cavalry Division of the
2nd Cavalry Corps in March 1941. == World War II ==