In July, 1812, Emperor Napoleon Bonaparte appointed Stanisław as Colonel and commander of the 22nd Lithuanian Infantry Regiment. With it, he partook in the beginning of Napoleon's invasion of Russia, fighting bravely in the battle of Kaidanava, for which he was awarded Virtuti Militari. During Napoleon's retreat from Russia, Stanisław fought in the battle of Berezina.