 In 1862 the Imperial Russian Army promoted him to Captain and stationed him in Brest, Belarus, but he still sympathized with the Poles.He consequently resigned from the Imperial Russian Army in 1863 to serve as minister of war for the January Uprising, a Polish insurrection, in the Vilnius region.He determined never to sentence anyone to death nor to execute any prisoner.