During World War I, he served as adjutant lieutenant under general Nikolai Baratov taking part in the Russian expeditionary force in the Persian campaign. He also served as commander of Tehran for a period of time. After the Bolsheviks prevailed, he settled in Germany.