 After the surrender of Port Arthur, he was taken as a prisoner of war by the Japanese.After the war, he was awarded the Gold Sword for Bravery and the Order of St George, 4th degree, as well as the Order of St. Stanislaus, 1st class with swords.Viren was also appointed the head of artillery training for the Baltic Fleet in 1906–1907, and became commander of the Black Sea Fleet from 1907–1908.